We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647a0dc commit 0230678Copy full SHA for 0230678
src/client/HostLobbyModal.ts
@@ -592,6 +592,9 @@ export class HostLobbyModal extends LitElement {
592
593
createLobby(this.lobbyCreatorClientID)
594
.then((lobby) => {
595
+ if (lobby.hostToken === null) {
596
+ throw new Error("Server did not return hostToken for private lobby");
597
+ }
598
this.lobbyId = lobby.gameInfo.gameID;
599
// join lobby
600
const cookieDurationSec = 60 * 60 * 6; // store for max 6 hours
0 commit comments