hypercore 11.33.2 → 11.33.3

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/index.js CHANGED
@@ -197,6 +197,7 @@ class Hypercore extends EventEmitter {
197
197
  }
198
198
 
199
199
  static destroyRequests(session, err) {
200
+ if (isRequestsDestroyed(session)) return
200
201
  Replicator.clearRequests(session, err)
201
202
  session.push(null) // mark as dead
202
203
  }
package/lib/replicator.js CHANGED
@@ -2271,7 +2271,7 @@ module.exports = class Replicator {
2271
2271
 
2272
2272
  static clearRequests(session, err) {
2273
2273
  if (session.length === 0) return
2274
- if (session.length === 1 && session[0] === null) return
2274
+ if (session.length >= 1 && session[0] === null) return
2275
2275
 
2276
2276
  const updated = new Set()
2277
2277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "11.33.2",
3
+ "version": "11.33.3",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {