pool: fix uncatchable error.

This commit is contained in:
Christopher Jeffrey 2017-02-08 15:56:40 -08:00
parent 7cc62c0a1e
commit e8b0a9ef83
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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.
*/