mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 05:01:58 +00:00
attempt fix private game not connecting
This commit is contained in:
@@ -154,6 +154,7 @@ export class GameRunner {
|
||||
}
|
||||
if (message.type == "turn") {
|
||||
if (!this.hasJoined) {
|
||||
this.transport.joinGame(0)
|
||||
return
|
||||
}
|
||||
if (this.turns.length != message.turn.turnNumber) {
|
||||
|
||||
@@ -84,10 +84,6 @@ class Client {
|
||||
);
|
||||
}
|
||||
|
||||
private stopGame() {
|
||||
this?.gameStop?.()
|
||||
}
|
||||
|
||||
private async handleLeaveLobby(event: CustomEvent) {
|
||||
if (this.gameStop == null) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user