Compare commits
2 Commits
411582ef05
...
8427cbdff6
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 8427cbdff6 | |
Derrick Hammer | e8a44315a8 |
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue