fix bug with timer continuing to run after client reconnect

This commit is contained in:
AlecM33
2022-01-17 19:43:34 -05:00
parent 07e7b77d5f
commit 68a6bb8608
2 changed files with 2 additions and 19 deletions

View File

@@ -150,16 +150,6 @@ export class GameTimerManager {
pauseBtn.addEventListener('click', this.pauseListener);
document.getElementById('play-pause').appendChild(pauseBtn);
}
processTimeRemaining (timeRemaining, paused, timerWorker) {
if (paused) {
this.displayPausedTime(timeRemaining);
} else if (timeRemaining === 0) {
this.displayExpiredTime();
} else {
this.resumeGameTimer(timeRemaining, globals.CLOCK_TICK_INTERVAL_MILLIS, null, timerWorker);
}
}
}
function returnHumanReadableTime (milliseconds, tenthsOfSeconds = false) {