fix active clients == 0

This commit is contained in:
Evan
2024-12-15 13:26:42 -08:00
parent 1576a2c744
commit e7791b183b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
</svg>
</a>
<h1 class="text-7xl sm:text-5xl md:text-6xl lg:text-7xl mb-2">OpenFront.io</h1>
<h2 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl mb-4">(v0.12.3)</h2>
<h2 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl mb-4">(v0.12.4)</h2>
<div class="flex justify-center items-start">
<div class="w-full max-w-3xl p-4 space-y-4">
<br />
+1 -1
View File
@@ -213,7 +213,7 @@ export class GameServer {
return GamePhase.Lobby
}
const noActive = this.activeClients.length
const noActive = this.activeClients.length == 0
const warmupOver = now > this.createdAt + this.config.lobbyLifetime() + 30 * 1000
const noRecentPings = now > this.lastPingUpdate + 20 * 1000