Skip to content

Commit 94819a3

Browse files
authored
Merge pull request #2809 from drgrice1/bugfix/gateway-time-update-interval
Cap the delay on the interval that the server time delta is updated in tests.
2 parents 0974272 + d7698f6 commit 94819a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htdocs/js/GatewayQuiz/gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
gracePeriod = parseInt(timerDiv.dataset.gracePeriod);
155155

156156
updateTimeDelta();
157-
setInterval(updateTimeDelta, (parseInt(timerDiv.dataset.sessionTimeout) - 60) * 1000);
157+
setInterval(updateTimeDelta, Math.min((parseInt(timerDiv.dataset.sessionTimeout) - 60) * 1000, 2147483646));
158158

159159
const remainingTime = serverDueTime - browserTime + timeDelta;
160160

0 commit comments

Comments
 (0)