mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 05:22:55 +01:00
Update index.js
This commit is contained in:
parent
b1a822f39e
commit
af64ae982b
2
index.js
2
index.js
@ -632,8 +632,8 @@ function endGame(gameId) {
|
|||||||
for (let i = 0; i < members.length; i++) {
|
for (let i = 0; i < members.length; i++) {
|
||||||
const sid = members[i][0];
|
const sid = members[i][0];
|
||||||
const socket = io.sockets.sockets.get(sid);
|
const socket = io.sockets.sockets.get(sid);
|
||||||
resetUserGame(socket.request);
|
|
||||||
socket.leave(gameId);
|
socket.leave(gameId);
|
||||||
|
resetUserGame(socket.request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user