From 955171be364c28e965d2f850ba3c681e4a83a78c Mon Sep 17 00:00:00 2001 From: MaciejkaG Date: Sat, 6 Apr 2024 21:49:27 +0200 Subject: [PATCH] Minor fixes --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 938daa1..f34f9e2 100644 --- a/index.js +++ b/index.js @@ -546,6 +546,9 @@ io.on('connection', async (socket) => { } socket.on('ready', async (callback) => { + if (!(callback && typeof callback === 'function')) { + return; + } const playerGame = await GInfo.getPlayerGameData(socket); let timeLeft = await GInfo.timerLeft(playerGame.id);