ericz 12 роки тому
батько
коміт
20b2425d54
1 змінених файлів з 0 додано та 6 видалено
  1. 0 6
      lib/socket.js

+ 0 - 6
lib/socket.js

@@ -191,12 +191,6 @@ Socket.prototype.send = function(data) {
       
     http.open('post', url, true);
     http.setRequestHeader('Content-Type', 'application/json');
-    http.onload = function() {
-      // This happens if destination peer is not available...
-      if (http.responseText != 'OK') {
-        self.emit('unavailable', data.dst)
-      }
-    }
     http.send(message);
   }
 };