Commit d2fd92f1 authored by Vũ Gia Vương's avatar Vũ Gia Vương

fix pause click home when play game

parent 7cd5247d
......@@ -55,7 +55,7 @@ async function endGame(socket: Socket) {
try {
const user = getUserBySocket(socket);
await endGameApi(user);
users.delete(user.id);
user.reset();
} catch (error) {
console.log('error', error)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment