Error handle if the server doesnt support commandId

This commit is contained in:
Sam 2018-06-17 16:15:47 +10:00
parent 3525ac1323
commit a2ef7e20ea
1 changed files with 1 additions and 1 deletions

View File

@ -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()