We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 946fe1b + 1e2417b commit 2db12efCopy full SHA for 2db12ef
1 file changed
src/streaming/controllers/TimeSyncController.js
@@ -600,8 +600,9 @@ function TimeSyncController() {
600
if (!_isOffsetDriftWithinThreshold(averageOffset)) {
601
logger.debug(`Completed background UTC sync. Setting client - server offset to ${averageOffset}`);
602
lastOffset = averageOffset;
603
+ const artificialTimeOffsetToApply = settings.get().streaming.utcSynchronization.artificialTimeOffsetToApply;
604
eventBus.trigger(Events.UPDATE_TIME_SYNC_OFFSET, {
- offset: lastOffset
605
+ offset: artificialTimeOffsetToApply + lastOffset
606
});
607
} else {
608
logger.debug(`Completed background UTC sync. Offset is within allowed threshold and is not adjusted.`);
0 commit comments