From 866f9f51e5d1f7e2e2ebad495aa9f1f743f97cae Mon Sep 17 00:00:00 2001 From: evan Date: Fri, 2 May 2025 15:43:42 -0700 Subject: [PATCH] actually stop after 30 mins) --- src/server/GameServer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/GameServer.ts b/src/server/GameServer.ts index 8b3a9a003..38b6903f9 100644 --- a/src/server/GameServer.ts +++ b/src/server/GameServer.ts @@ -447,12 +447,13 @@ export class GameServer { } this.activeClients = alive; - // For tournament only! - if (now > this._startTime + 30 * 60 * 1_000) { + if (this._startTime && now > this._startTime + 31 * 60 * 1_000) { this.log.warn("game past 30 min mark", { gameID: this.id, }); + return GamePhase.Finished; } + if (now > this.createdAt + this.maxGameDuration) { this.log.warn("game past max duration", { gameID: this.id,