Fix custom lobby staying in Started state after game ends
Add CustomLobbyStatus.Completed; in FinalizeGameAsync, query the lobby linked via GameSessionId and set Status=Completed when the game ends. This removes finished games from the active-games browser (list_active only returns Started lobbies) and from the admin "active" count. Admin page: add Completed filter option, dark badge, include Started lobbies in the always-loaded set so stale in-progress games are visible. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -60,4 +60,6 @@ public enum CustomLobbyStatus
|
||||
Started,
|
||||
/// <summary>Lobby was cancelled by the host before a game started.</summary>
|
||||
Cancelled,
|
||||
/// <summary>The game session created from this lobby has ended.</summary>
|
||||
Completed,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user