Update index.js

This commit is contained in:
Maciej Gomoła 2024-04-05 09:46:34 +02:00 committed by GitHub
parent b1a822f39e
commit af64ae982b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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