pool: emit 'full' faster

This commit is contained in:
Fedor Indutny 2014-05-10 02:51:49 +04:00
parent 7a8d6a1018
commit 2c5a622a66

View File

@ -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');