*Need to hook to the stream directly
This commit is contained in:
parent
411582ef05
commit
e8a44315a8
|
@ -193,7 +193,7 @@ export default class HyperswarmWeb extends EventEmitter {
|
||||||
keyPair: this._options.keyPair,
|
keyPair: this._options.keyPair,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._activeRelay.on("close", () => {
|
this._activeRelay.dht._protocol._stream.once("close", () => {
|
||||||
this._activeRelay = undefined;
|
this._activeRelay = undefined;
|
||||||
this._ready = false;
|
this._ready = false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue