From af64ae982b4a3b37cfd1961e3ddd802946570975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Gomo=C5=82a?= Date: Fri, 5 Apr 2024 09:46:34 +0200 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6feab4b..dbf0de1 100644 --- a/index.js +++ b/index.js @@ -632,8 +632,8 @@ function endGame(gameId) { for (let i = 0; i < members.length; i++) { const sid = members[i][0]; const socket = io.sockets.sockets.get(sid); - resetUserGame(socket.request); socket.leave(gameId); + resetUserGame(socket.request); } }