Fixes assertion

This commit is contained in:
Vitor Pamplona
2026-03-31 08:59:38 -04:00
parent 9cb7f9cc21
commit 26798e2b57
2 changed files with 3 additions and 2 deletions
@@ -696,7 +696,7 @@ class ChessLobbyLogic(
// Check status FIRST to avoid briefly emitting a finished game through activeGames
val gameStatus = result.liveState.gameStatus.value
if (gameStatus is GameStatus.Finished) {
Log.d("chessdebug") { "[Lobby] refreshGame: game ${startEventId.take(8)} is FINISHED (${(gameStatus as GameStatus.Finished).result}), moving to completed" }
Log.d("chessdebug") { "[Lobby] refreshGame: game ${startEventId.take(8)} is FINISHED (${gameStatus.result}), moving to completed" }
state.moveToCompleted(startEventId, gameStatus.result.notation, null)
pollingDelegate.removeGameId(startEventId)
} else {