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,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();
});
/**