actually stop after 30 mins)

This commit is contained in:
evan
2025-05-02 15:43:42 -07:00
parent 157be302e2
commit 866f9f51e5
+3 -2
View File
@@ -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,