WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c75c24a

Browse files
committed
Should not allow re-executing the method (although it can't due ._destroying)
1 parent 1ce456f commit c75c24a

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
@@ -483,7 +483,7 @@ module.exports = class Hyperswarm extends EventEmitter {
483483
}
484484

485485
async _destroy ({ force } = {}) {
486-
if (this.destroyed && !force) return
486+
if (this.destroyed) return
487487
this.destroyed = true
488488

489489
if (!this._root) this.dht.off('network-change', this._handleNetworkChange)

0 commit comments

Comments
 (0)