*Need to hook to the stream directly

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

View File

@ -193,7 +193,7 @@ export default class HyperswarmWeb extends EventEmitter {
keyPair: this._options.keyPair,
});
this._activeRelay.on("close", () => {
this._activeRelay.dht._protocol._stream.once("close", () => {
this._activeRelay = undefined;
this._ready = false;
});