diff --git a/sockets/socketLogic.js b/sockets/socketLogic.js index bb393002cbd5c1916bf21c005572289b46c99a51..7193b9e395dfc8bcf869fca1890792e40da35d04 100644 --- a/sockets/socketLogic.js +++ b/sockets/socketLogic.js @@ -119,10 +119,10 @@ async function showQuestions(game, socket, questionNumber) { while (questionNumber < 10) { await showQuestion(); // Show the question - await wait(15, socket, game.id); // Wait for 15 seconds + await wait(15, socket, game.id, true); // Wait for 15 seconds // Send a new event to close the question - await wait(15, socket, game.id); // Wait for 15 more seconds + await wait(15, socket, game.id, false); // Wait for 15 more seconds questionNumber++; // Move to the next question } }