From 4e3e77e01475e32f2c9e5ea2e80cb6de35b5e5ea Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Mon, 6 Mar 2023 18:41:54 +0800 Subject: [PATCH] adjust game inactivity time to 15 minutes --- server/src/socket/game.socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/socket/game.socket.ts b/server/src/socket/game.socket.ts index d077b18..530cb20 100644 --- a/server/src/socket/game.socket.ts +++ b/server/src/socket/game.socket.ts @@ -64,7 +64,7 @@ export async function leaveLobby(this: Socket, reason?: DisconnectReason, code?: game.timeout = Number( setTimeout(() => { activeGames.splice(activeGames.indexOf(game), 1); - }, 1000 * 60 * 30) // 30 minutes + }, 1000 * 60 * 15) // 15 minutes ); } else { this.to(game.code as string).emit("receivedLatestGame", game);