From 4cd018c31a7f3d84957dba23d55eda0815ec86c7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 8 Jun 2016 15:36:07 -0700 Subject: [PATCH] fix sync. --- lib/bcoin/peer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index 0912f463..377d5fd1 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -1793,6 +1793,9 @@ Peer.prototype.sync = function sync(callback) { if (!this.pool.syncing) return; + if (!this.ack) + return; + if (this.syncSent) return;