diff --git a/lib/net/pool.js b/lib/net/pool.js index e0c6113d..77d0885d 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -1156,8 +1156,10 @@ Pool.prototype.handleClose = co(function* handleClose(peer, connected) { if (!outbound) return; - if(!this.disconnecting) - this.refill(); + if(this.disconnecting) + return; + + this.refill(); }); /**