lower game deletion timeout to 10 minutes

This commit is contained in:
Nathaniel Tampus
2023-03-08 23:14:01 +08:00
parent fd696677c3
commit 021bbee894

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 * 15) // 15 minutes
}, 1000 * 60 * 10) // 10 minutes
);
} else {
this.to(game.code as string).emit("receivedLatestGame", game);