Skip to content

Commit

Permalink
fix bug with clearing timer
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Sep 26, 2024
1 parent a449780 commit 4aa1db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/multiplayer/TossupRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 4aa1db7

Please sign in to comment.