*Update dist

This commit is contained in:
Derrick Hammer 2023-02-01 04:42:29 -05:00
parent cc7c7c8edf
commit 6a843447b1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

2
dist/index.js vendored
View File

@ -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");
}