From a8978762eee89d099809c66c5b651757b971b2a2 Mon Sep 17 00:00:00 2001 From: IM23a-cernik Date: Thu, 8 May 2025 11:26:43 +0200 Subject: [PATCH] Decrease lobby cleanup interval to 30 seconds. --- gambling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gambling.js b/gambling.js index 0782a92..31e7641 100644 --- a/gambling.js +++ b/gambling.js @@ -200,7 +200,7 @@ app.post("/leave-lobby", (req, res) => { res.json({ message: `Lobby ${lobbyId} aktualisiert.` }); }); -setInterval(() => removeEmptyLobbies(playerMap), 60000); // Alle 60 Sekunden +setInterval(() => removeEmptyLobbies(playerMap), 30000); // Alle 60 Sekunden function removeEmptyLobbies(playerMap) { for (const lobby in playerMap) {