joinAttemptId++ on handleLeaveLobby

This commit is contained in:
Ryan Barlow
2026-02-04 20:28:11 +00:00
parent edc5a799e7
commit eafc5ff96a
+4
View File
@@ -922,7 +922,11 @@ class Client {
}
private async handleLeaveLobby(/* event: CustomEvent */) {
// Abort any in-progress join attempt (before joinLobby() was called)
this.joinAttemptId++;
if (this.gameStop === null) {
console.log("leaving lobby, no active game to stop");
return;
}
console.log("leaving lobby, cancelling game");