Explorar o código

remote unused onload

ericz %!s(int64=12) %!d(string=hai) anos
pai
achega
20b2425d54
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  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);
   }
 };