peer: less spammy logs.

This commit is contained in:
Christopher Jeffrey 2016-12-17 02:50:03 -08:00
parent 6a87a9588b
commit 9036ea263d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -250,6 +250,8 @@ Peer.prototype.bind = function bind(socket) {
});
this.socket.once('close', function() {
if (self.destroyed)
return;
self.destroy();
self.error('socket hangup');
});