Skip to content

Commit

Permalink
Include actions in Init state when cancelling steps (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
squimmy authored Mar 19, 2024
1 parent 50415e5 commit bce521c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub fn steps_system(
#[cfg(feature = "trace")]
trace!("StepsAction has been cancelled. Cancelling current step {:?} before finalizing.", active_ent);
let mut step_state = states.get_mut(active_ent).expect("oops");
if *step_state == Requested || *step_state == Executing {
if *step_state == Requested || *step_state == Executing || *step_state == Init {
*step_state = Cancelled;
} else if *step_state == Failure || *step_state == Success {
*states.get_mut(seq_ent).unwrap() = step_state.clone();
Expand Down

0 comments on commit bce521c

Please sign in to comment.