Compare commits

..

No commits in common. "8427cbdff6e4003adc2e9f4347189d4114a20589" and "411582ef056475a0b3d3aa451cc069a06f300f28" have entirely different histories.

2 changed files with 2 additions and 2 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), dht: new DhtNode(new Stream(true, new WebSocket(connection)), this._options),
keyPair: this._options.keyPair, keyPair: this._options.keyPair,
}); });
this._activeRelay.dht._protocol._stream.once("close", () => { this._activeRelay.on("close", () => {
this._activeRelay = undefined; this._activeRelay = undefined;
this._ready = false; this._ready = false;
}); });

View File

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