diff --git a/src/mtppy/state_machine.py b/src/mtppy/state_machine.py index b97e466..7762c6a 100644 --- a/src/mtppy/state_machine.py +++ b/src/mtppy/state_machine.py @@ -111,6 +111,8 @@ def state_change(self): self._change_state_to(StateCodes.execute) elif self.act_state == StateCodes.starting: self._change_state_to(StateCodes.execute) + elif selt.act_state == StateCodes.execute: + self._change_state_to(StateCodes.completing) elif self.act_state == StateCodes.completing: self._change_state_to(StateCodes.completed) elif self.act_state == StateCodes.pausing: