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)
|
||||
return false;
|
||||
|
||||
if (peer.destroyed)
|
||||
return false;
|
||||
|
||||
if (!peer.handshake)
|
||||
return false;
|
||||
|
||||
@ -627,6 +630,9 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (peer.destroyed)
|
||||
return false;
|
||||
|
||||
if (this.checkpoints) {
|
||||
peer.sendGetHeaders(locator, this.headerTip.hash);
|
||||
return true;
|
||||
@ -637,7 +643,6 @@ Pool.prototype.sendSync = co(function* sendSync(peer) {
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Send `mempool` to all peers.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user