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); } }