We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f747c04 commit 7696aa7Copy full SHA for 7696aa7
1 file changed
lib/pool.js
@@ -125,11 +125,9 @@ Pool.prototype._handlePeerReady = function(peer, addr) {
125
}
126
127
Pool.prototype._handlePeerDisconnect = function(peer, addr) {
128
- if (peer instanceof Peer) {
129
- this._removePeer(peer);
130
- clearInterval(peer._pingTimer);
131
- this.emit('peer-disconnect', peer);
132
- }
+ this._removePeer(peer);
+ clearInterval(peer._pingTimer);
+ this.emit('peer-disconnect', peer);
133
134
135
Pool.prototype._handlePeerInv = function(peer, message) {
0 commit comments