From fdffa2abdd5e59f98e51e86215e101a1b2d75c51 Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Mon, 11 Aug 2025 16:57:07 -0500 Subject: [PATCH] Rooms: Prevent expiry of Bo3 parent rooms Apparently some games last long enough that the parent rooms will expire due to the 15 minute limitation, terminating the child games as well. So we're just going to prevent those from expiring while child games exist. If they're truly inactive, they'll get hit once the child games expire. --- server/rooms.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/rooms.ts b/server/rooms.ts index 6a7d913b7f..45d2234b00 100644 --- a/server/rooms.ts +++ b/server/rooms.ts @@ -676,6 +676,12 @@ export abstract class BasicRoom { } } expire() { + const game = this.getGame(BestOfGame); + // do not expire parent room until children expire + if (game?.games.length) { + this.pokeExpireTimer(); + return; + } this.send('|expire|'); this.destroy(); }