From 2c5a622a6640192ecf9a3b11556d043b25239ebe Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sat, 10 May 2014 02:51:49 +0400 Subject: [PATCH] pool: emit 'full' faster --- lib/bcoin/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index d67b42f9..b0ba8628 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -128,7 +128,7 @@ Pool.prototype._addLoader = function _addLoader() { function destroy() { // Chain is full and up-to-date - if (self.block.lastHash !== null && self.chain.isFull()) { + if (self.chain.isFull()) { clearTimeout(timer); self._removePeer(peer); self.emit('full');