From 95d0c9656dca1d4fc46a9f31350ef422d03d93a5 Mon Sep 17 00:00:00 2001 From: HDegroote <75906619+HDegroote@users.noreply.github.com> Date: Fri, 8 Dec 2023 01:21:01 +0100 Subject: [PATCH] Bugfix: don't create an announcer if closing --- lib/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server.js b/lib/server.js index 156a1f39..b8def293 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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)