mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 04:03:49 +00:00
for masters: stop game after 30 mins
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user