refactor: remove stop as a possible end action

This commit is contained in:
Carlos Valente
2025-03-23 22:01:33 +01:00
committed by Carlos Valente
parent 69eb9a5eff
commit 4ed38340e0
6 changed files with 3 additions and 12 deletions
@@ -134,9 +134,7 @@ class RuntimeService {
// handle end action if there was a timer playing
// actions are added to the queue stack to ensure that the order of operations is maintained
if (newState.eventNow) {
if (newState.eventNow.endAction === EndAction.Stop) {
setTimeout(this.stop.bind(this), 0);
} else if (newState.eventNow.endAction === EndAction.LoadNext) {
if (newState.eventNow.endAction === EndAction.LoadNext) {
setTimeout(this.loadNext.bind(this), 0);
} else if (newState.eventNow.endAction === EndAction.PlayNext) {
setTimeout(this.startNext.bind(this), 0);