Merge pull request #168 from cubedro/develop

Fixed duplicate pending sends
This commit is contained in:
Marian OANCΞA 2015-06-02 17:15:56 +03:00
commit 10bdf2ac18

View File

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