Skip to content

Commit

Permalink
Include actions in Init state when cancelling steps
Browse files Browse the repository at this point in the history
  • Loading branch information
squimmy committed Mar 15, 2024
1 parent acaadd9 commit c595cf3
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 c595cf3

Please sign in to comment.