pool: graceful disconnect - minor fix
This commit is contained in:
parent
06d25a9007
commit
e651338ff3
@ -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();
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user