From 3560df5927f8a071f413a5382eecac64d21d943b Mon Sep 17 00:00:00 2001 From: Brian Le Date: Sat, 9 Dec 2023 08:45:06 +0000 Subject: [PATCH] Send server restart notification for listening sesions too --- src/helpers/management_utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helpers/management_utils.ts b/src/helpers/management_utils.ts index e674bcc06..c3ef4cfba 100644 --- a/src/helpers/management_utils.ts +++ b/src/helpers/management_utils.ts @@ -49,7 +49,10 @@ export async function warnServersImpendingRestart( ): Promise { let serversWarned = 0; if (RESTART_WARNING_INTERVALS.has(timeUntilRestart)) { - for (const gameSession of Object.values(State.gameSessions)) { + for (const gameSession of [ + ...Object.values(State.gameSessions), + ...Object.values(State.listeningSessions), + ]) { if (gameSession.finished) continue; // eslint-disable-next-line no-await-in-loop await sendInfoMessage(