pool: fix uncatchable error.
This commit is contained in:
parent
7cc62c0a1e
commit
e8b0a9ef83
@ -594,6 +594,9 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
|||||||
if (!this.syncing)
|
if (!this.syncing)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (peer.destroyed)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!peer.handshake)
|
if (!peer.handshake)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -627,6 +630,9 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (peer.destroyed)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (this.checkpoints) {
|
if (this.checkpoints) {
|
||||||
peer.sendGetHeaders(locator, this.headerTip.hash);
|
peer.sendGetHeaders(locator, this.headerTip.hash);
|
||||||
return true;
|
return true;
|
||||||
@ -637,7 +643,6 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send `mempool` to all peers.
|
* Send `mempool` to all peers.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user