Permalink
Browse files

Add missing state transition

  • Loading branch information...
1 parent a667422 commit 49b187f1a4e86fffc034555f229a03e910382e09 @oldpatricka oldpatricka committed Sep 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 pidantic/state_machine.py
@@ -64,6 +64,7 @@ def __init__(self, o, log=logging):
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_STOPPED, PIDanticState.STATE_STARTING, None)
self.set_mapping(PIDanticState.STATE_STARTING, PIDanticEvents.EVENT_RESTART_REQUEST, PIDanticState.STATE_STOPPING_RESTART, o.sm_restarting)
+ self.set_mapping(PIDanticState.STATE_RUNNING, PIDanticEvents.EVENT_STOPPED, PIDanticState.STATE_TERMINATED, o.sm_stopped)
self.set_mapping(PIDanticState.STATE_RUNNING, PIDanticEvents.EVENT_EXITED, PIDanticState.STATE_EXITED, o.sm_stopped)
self.set_mapping(PIDanticState.STATE_RUNNING, PIDanticEvents.EVENT_STOP_REQUEST, PIDanticState.STATE_STOPPING, o.sm_stopping)
self.set_mapping(PIDanticState.STATE_RUNNING, PIDanticEvents.EVENT_FAULT, PIDanticState.STATE_STOPPING, o.sm_run_fault)

0 comments on commit 49b187f

Please sign in to comment.