pool: graceful disconnect - minor fix

This commit is contained in:
Mokhtar Naamani 2017-01-27 10:01:35 +02:00
parent 06d25a9007
commit e651338ff3

View File

@ -1156,7 +1156,9 @@ Pool.prototype.handleClose = co(function* handleClose(peer, connected) {
if (!outbound) if (!outbound)
return; return;
if(!this.disconnecting) if(this.disconnecting)
return;
this.refill(); this.refill();
}); });