Skip to content

Commit

Permalink
Bugfix: don't create an announcer if closing (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
HDegroote authored Dec 8, 2023
1 parent 75059f5 commit 6f27f47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ module.exports = class Server extends EventEmitter {
if (this.dht.destroyed) throw NODE_DESTROYED()

await this.dht.bind()
if (this._closing) return

this.target = hash(keyPair.publicKey)

Expand Down

0 comments on commit 6f27f47

Please sign in to comment.