*** empty log message ***

This commit is contained in:
Joe Shochet 2001-04-13 17:53:01 +00:00
parent fa31ef95f1
commit c1200b5b09

View File

@ -193,6 +193,13 @@ class FSM(DirectObject):
return 1
# We can implicitly always transition to our final state.
elif (aStateName == self.__finalState.getName()):
if (self.__currentState == self.__finalState):
# Do not do the transition if we are already in the final state
FSM.notify.debug("[%s]: already in final state: %s" %
(self.__name, aStateName))
return 1
else:
# Force a transition to allow for cleanup
FSM.notify.debug("[%s]: implicit transition to final state: %s" %
(self.__name, aStateName))
self.__transition(aState,