hypercore 10.36.1 → 10.36.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 +3 -1
- package/package.json +1 -1
package/lib/replicator.js
CHANGED
|
@@ -1491,12 +1491,14 @@ module.exports = class Replicator {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
1493
|
clearRequests (session, err = null) {
|
|
1494
|
+
let cleared = false
|
|
1494
1495
|
while (session.length > 0) {
|
|
1495
1496
|
const ref = session[session.length - 1]
|
|
1496
1497
|
ref.context.detach(ref, err)
|
|
1498
|
+
cleared = true
|
|
1497
1499
|
}
|
|
1498
1500
|
|
|
1499
|
-
this.updateAll()
|
|
1501
|
+
if (cleared) this.updateAll()
|
|
1500
1502
|
}
|
|
1501
1503
|
|
|
1502
1504
|
_addUpgradeMaybe () {
|