fixed duplicate pending sends

This commit is contained in:
cubedro 2015-06-02 17:15:34 +03:00
parent 0577d2406f
commit 9fce5d3ba3
1 changed files with 5 additions and 2 deletions

View File

@ -97,7 +97,7 @@ function Node ()
this._lastBlock = 0;
this._lastStats = JSON.stringify(this.stats);
this._lastFetch = 0;
this._startBlockFetch = 0;
this._lastPending = 0;
this._tries = 0;
this._down = 0;
@ -533,7 +533,10 @@ Node.prototype.getPending = function()
self.stats.pending = pending;
self.sendPendingUpdate();
if(self._lastPending !== pending)
self.sendPendingUpdate();
self._lastPending = pending;
});
}
}