Skip to content

Commit bce521c

Browse files
authored
Include actions in Init state when cancelling steps (#95)
1 parent 50415e5 commit bce521c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ pub fn steps_system(
325325
#[cfg(feature = "trace")]
326326
trace!("StepsAction has been cancelled. Cancelling current step {:?} before finalizing.", active_ent);
327327
let mut step_state = states.get_mut(active_ent).expect("oops");
328-
if *step_state == Requested || *step_state == Executing {
328+
if *step_state == Requested || *step_state == Executing || *step_state == Init {
329329
*step_state = Cancelled;
330330
} else if *step_state == Failure || *step_state == Success {
331331
*states.get_mut(seq_ent).unwrap() = step_state.clone();

0 commit comments

Comments
 (0)