peer: less spammy logs.
This commit is contained in:
parent
6a87a9588b
commit
9036ea263d
@ -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');
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user