mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 04:22:55 +01:00
Minor fixes
This commit is contained in:
parent
322b932dbd
commit
955171be36
3
index.js
3
index.js
@ -546,6 +546,9 @@ io.on('connection', async (socket) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
socket.on('ready', async (callback) => {
|
socket.on('ready', async (callback) => {
|
||||||
|
if (!(callback && typeof callback === 'function')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const playerGame = await GInfo.getPlayerGameData(socket);
|
const playerGame = await GInfo.getPlayerGameData(socket);
|
||||||
let timeLeft = await GInfo.timerLeft(playerGame.id);
|
let timeLeft = await GInfo.timerLeft(playerGame.id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user