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)