From 157be302e2c078f6716131fc8ae0b175c76c8f59 Mon Sep 17 00:00:00 2001 From: evan Date: Fri, 2 May 2025 13:16:21 -0700 Subject: [PATCH] for masters: stop game after 30 mins --- src/server/GameServer.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/GameServer.ts b/src/server/GameServer.ts index c655a1cf4..8b3a9a003 100644 --- a/src/server/GameServer.ts +++ b/src/server/GameServer.ts @@ -446,6 +446,13 @@ export class GameServer { } } this.activeClients = alive; + + // For tournament only! + if (now > this._startTime + 30 * 60 * 1_000) { + this.log.warn("game past 30 min mark", { + gameID: this.id, + }); + } if (now > this.createdAt + this.maxGameDuration) { this.log.warn("game past max duration", { gameID: this.id,