adjust game inactivity time to 15 minutes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user