hypercore 11.13.4 → 11.14.0
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 +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -453,6 +453,11 @@ class Hypercore extends EventEmitter {
|
|
|
453
453
|
return this.closing
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
+
clearRequests (activeRequests, error) {
|
|
457
|
+
if (!activeRequests.length) return
|
|
458
|
+
if (this.core) this.core.replicator.clearRequests(activeRequests, error)
|
|
459
|
+
}
|
|
460
|
+
|
|
456
461
|
async _close (error) {
|
|
457
462
|
if (this.opened === false) {
|
|
458
463
|
try {
|