mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
fix: roll active with upcoming event
fixed an bug where the next event index 0 was treated as no event found
This commit is contained in:
@@ -988,16 +988,16 @@ export class EventTimer extends Timer {
|
||||
}
|
||||
|
||||
// nothing to play next, unload
|
||||
if (!foundNow && !nextIndex) {
|
||||
if (foundNow == null && nextIndex == null) {
|
||||
this.unload();
|
||||
return;
|
||||
}
|
||||
|
||||
if (nextIndex) {
|
||||
if (nextIndex != null) {
|
||||
// load titles
|
||||
this._loadThisTitles(nextIndex, 'next');
|
||||
|
||||
if (!foundNow) {
|
||||
if (foundNow == null) {
|
||||
// timer counts to nextStart
|
||||
this.secondaryTimer = nextStart;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user