*Update dist
This commit is contained in:
parent
cc7c7c8edf
commit
6a843447b1
|
@ -53,7 +53,7 @@ export default class HyperswarmWeb extends EventEmitter {
|
|||
this._activeRelay.on("close", () => {
|
||||
this._activeRelay = undefined;
|
||||
});
|
||||
} while (relays.length > 0);
|
||||
} while (relays.length > 0 && !this._activeRelay);
|
||||
if (!this._activeRelay) {
|
||||
throw new Error("Failed to find an available relay");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue