lower game deletion timeout to 10 minutes
This commit is contained in:
@@ -64,7 +64,7 @@ export async function leaveLobby(this: Socket, reason?: DisconnectReason, code?:
|
|||||||
game.timeout = Number(
|
game.timeout = Number(
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
activeGames.splice(activeGames.indexOf(game), 1);
|
activeGames.splice(activeGames.indexOf(game), 1);
|
||||||
}, 1000 * 60 * 15) // 15 minutes
|
}, 1000 * 60 * 10) // 10 minutes
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this.to(game.code as string).emit("receivedLatestGame", game);
|
this.to(game.code as string).emit("receivedLatestGame", game);
|
||||||
|
|||||||
Reference in New Issue
Block a user