From 511debc10c34becd9b2b64ab3edc81eec706b0fc Mon Sep 17 00:00:00 2001 From: VariableVince <24507472+VariableVince@users.noreply.github.com> Date: Fri, 3 Apr 2026 03:33:29 +0200 Subject: [PATCH] Comment --- src/server/MasterLobbyService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/MasterLobbyService.ts b/src/server/MasterLobbyService.ts index 80c3da0c6..c8596df1c 100644 --- a/src/server/MasterLobbyService.ts +++ b/src/server/MasterLobbyService.ts @@ -159,6 +159,10 @@ export class MasterLobbyService { for (const type of lobbyTypes) { const lobbies = lobbiesByType[type]; + // Always ensure the next lobby has a timer, even if we already have 2+ + // lobbies. This prevents a race where two lobbies are created before + // either receives a startsAt (IPC round-trip delay), leaving both stuck + // without a countdown. const nextLobby = lobbies[0]; if (nextLobby && nextLobby.startsAt === undefined) { this.sendMessageToWorker({