From a2ef7e20ea3870164dd89c8470e0830d503ced37 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 17 Jun 2018 16:15:47 +1000 Subject: [PATCH] Error handle if the server doesnt support commandId --- src/store/modules/synclounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/synclounge.js b/src/store/modules/synclounge.js index 0244184f..4c3059be 100644 --- a/src/store/modules/synclounge.js +++ b/src/store/modules/synclounge.js @@ -343,7 +343,7 @@ export default { if (hostTimeline.playerState === 'playing') { // Add on the delay between us and the SLServer plus the delay between the server and the host let ourLastDelay = state.commands[Object.keys(state.commands).length - 1].difference - data.time = data.time + ourLastDelay + data.time = data.time + (ourLastDelay || 0) } await rootState.chosenClient.sync(data, rootState.settings.SYNCFLEXABILITY, rootState.settings.SYNCMODE) resolve()