mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:20:43 +00:00
joinAttemptId++ on handleLeaveLobby
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user