Skip to content

Commit

Permalink
Routine에서 현재 실행 중인 actiondml directive가 모두 종료되었을 때 playing 상태가 아니라면 다…
Browse files Browse the repository at this point in the history
…음 액션을 실행하지 않도록 변경 (#1077)

### Description
- Routine에서 현재 실행 중인 actiondml directive가 모두 종료되었을 때 playing 상태가 아니라면 다음
액션을 실행하지 않도록 변경
  • Loading branch information
jayce1116 authored Aug 25, 2023
1 parent fb0aeb0 commit 4999450
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private extension RoutineExecuter {
}

func doNextAction() {
guard let action = currentAction else { return }
guard let action = currentAction, state == .playing else { return }
actionWorkItem?.cancel()
if shouldDelayAction, let delay = currentAction?.muteDelay {
log.debug("Delaying action using mute delay, delay: \(delay.dispatchTimeInterval)")
Expand All @@ -395,7 +395,6 @@ private extension RoutineExecuter {
doActionAfter(delay: delay)
} else {
delegate?.routineExecuterDidFinishProcessingAction(action)
guard state == .playing else { return }
guard hasNextAction else {
doFinish()
return
Expand Down

0 comments on commit 4999450

Please sign in to comment.