Skip to content

Commit d7698f6

Browse files
committed
Cap the delay on the interval that the server time delta is updated in tests.
This fixes issue #2808. See that issue and my comment at #2808 (comment) for an explanation of this fix.
1 parent 0974272 commit d7698f6

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)