Compare commits

..

No commits in common. "6a843447b1d2964fa3acb8dd90723a6c6807a658" and "21fb7954887d2ccb8f55e60425da8d836311a1f8" have entirely different histories.

2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -53,7 +53,7 @@ export default class HyperswarmWeb extends EventEmitter {
this._activeRelay.on("close", () => { this._activeRelay.on("close", () => {
this._activeRelay = undefined; this._activeRelay = undefined;
}); });
} while (relays.length > 0 && !this._activeRelay); } while (relays.length > 0);
if (!this._activeRelay) { if (!this._activeRelay) {
throw new Error("Failed to find an available relay"); throw new Error("Failed to find an available relay");
} }

View File

@ -76,7 +76,7 @@ export default class HyperswarmWeb extends EventEmitter {
this._activeRelay.on("close", () => { this._activeRelay.on("close", () => {
this._activeRelay = undefined; this._activeRelay = undefined;
}); });
} while (relays.length > 0 && !this._activeRelay); } while (relays.length > 0);
if (!this._activeRelay) { if (!this._activeRelay) {
throw new Error("Failed to find an available relay"); throw new Error("Failed to find an available relay");