fixed duplicate pending sends
This commit is contained in:
parent
0577d2406f
commit
9fce5d3ba3
@ -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;
|
||||
|
||||
if(self._lastPending !== pending)
|
||||
self.sendPendingUpdate();
|
||||
|
||||
self._lastPending = pending;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user