|
@@ -185,7 +185,8 @@ class state_machine(object):
|
185
|
185
|
self.__time_stamp_state_change__ = timestamp
|
186
|
186
|
self.__conditions_start_time__ = {}
|
187
|
187
|
# Callback collect
|
188
|
|
- this_state_change_callbacks = self.__state_change_callbacks__.get(None, {}).get(None, [])
|
|
188
|
+ this_state_change_callbacks = []
|
|
189
|
+ this_state_change_callbacks.extend(self.__state_change_callbacks__.get(None, {}).get(None, []))
|
189
|
190
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(None, []))
|
190
|
191
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(None, {}).get(condition, []))
|
191
|
192
|
this_state_change_callbacks.extend(self.__state_change_callbacks__.get(target_state, {}).get(condition, []))
|