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.
This commit is contained in:
Mia
2025-08-11 16:57:07 -05:00
parent d1efa30cf4
commit fdffa2abdd

View File

@@ -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();
}