Skip to content

Commit

Permalink
fix: handle empty timelines better
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Apr 4, 2019
1 parent 61436c0 commit 9d86cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/playout.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function createTimeline () {
let tries = 0
while (time < stopCondition && tries < 1000) {
const tl = parser.getNextTimeline(new DateObj(time))
tls.push(tl)
if (tl.timeline.length > 0) tls.push(tl)
time = tl.end + 1000
tries++
}
Expand Down

0 comments on commit 9d86cd4

Please sign in to comment.