Skip to content

Commit cbff1b8

Browse files
fix bad condition
1 parent 8aa6008 commit cbff1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class Hypercore extends EventEmitter {
388388
}
389389
for (const ext of gc) ext.destroy()
390390

391-
if (this.core !== null) {
391+
if (this.core.replicator !== null) {
392392
this.core.replicator.findingPeers -= this._findingPeers
393393
this.core.replicator.clearRequests(this.activeRequests, error)
394394
this.core.replicator.updateActivity(this._active ? -1 : 0)

0 commit comments

Comments
 (0)