hypercore 11.30.1 → 11.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/replicator.js CHANGED
@@ -2451,14 +2451,16 @@ module.exports = class Replicator {
2451
2451
 
2452
2452
  if (this._manifestPeer === peer) this._manifestPeer = null
2453
2453
 
2454
+ let inflight = false
2454
2455
  for (const req of this._inflight) {
2455
2456
  if (req.peer !== peer) continue
2457
+ inflight = true
2456
2458
  this._inflight.remove(req.id, true)
2457
2459
  this._clearRequest(peer, req)
2458
2460
  }
2459
2461
 
2460
2462
  this._onpeerupdate(false, peer)
2461
- this.updateAll()
2463
+ if (inflight) this.updateAll()
2462
2464
  }
2463
2465
 
2464
2466
  _queueBlock(b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.30.1",
3
+ "version": "11.30.2",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {