From 4aa1db7458b1483adee3d864392d2357fa04f416 Mon Sep 17 00:00:00 2001 From: Geoffrey Wu Date: Thu, 26 Sep 2024 14:25:39 -0400 Subject: [PATCH] fix bug with clearing timer --- server/multiplayer/TossupRoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/multiplayer/TossupRoom.js b/server/multiplayer/TossupRoom.js index 301bf135..8bb1c4d3 100644 --- a/server/multiplayer/TossupRoom.js +++ b/server/multiplayer/TossupRoom.js @@ -297,7 +297,7 @@ class TossupRoom extends Room { if (this.buzzedIn !== userId) { return false; } this.liveAnswer = ''; - clearInterval(this.timerInterval); + clearInterval(this.timer.interval); this.emitMessage({ type: 'timer-update', timeRemaining: this.ANSWER_TIME_LIMIT * 10 }); if (Object.keys(this.tossup).length === 0) { return; }