mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 08:35:04 +00:00
multiply by 1000 to wait 30s before stopping game.
This commit is contained in:
@@ -208,7 +208,7 @@ export class GameServer {
|
||||
return GamePhase.Lobby
|
||||
}
|
||||
|
||||
if (this.activeClients.length == 0 && now > this.createdAt + this.config.lobbyLifetime() + 30 * 60) { // wait at least 30s before ending game
|
||||
if (this.activeClients.length == 0 && now > this.createdAt + this.config.lobbyLifetime() + 30 * 60 * 1000) { // wait at least 30s before ending game
|
||||
return GamePhase.Finished
|
||||
}
|
||||
|
||||
@@ -218,5 +218,4 @@ export class GameServer {
|
||||
hasStarted(): boolean {
|
||||
return this._hasStarted
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user