*Update dist

This commit is contained in:
Derrick Hammer 2023-02-17 16:32:55 -05:00
parent e8a44315a8
commit 8427cbdff6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

2
dist/index.js vendored
View File

@ -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;
});