adjust game inactivity time to 15 minutes

This commit is contained in:
Nathaniel Tampus
2023-03-06 18:41:54 +08:00
parent 99b73fb1c1
commit 4e3e77e014

View File

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