From 8427cbdff6e4003adc2e9f4347189d4114a20589 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 16:32:55 -0500 Subject: [PATCH] *Update dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 24ae171..d335ff6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -131,7 +131,7 @@ export default class HyperswarmWeb extends EventEmitter { dht: new DhtNode(new Stream(true, new WebSocket(connection)), this._options), keyPair: this._options.keyPair, }); - this._activeRelay.on("close", () => { + this._activeRelay.dht._protocol._stream.once("close", () => { this._activeRelay = undefined; this._ready = false; });