summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-24 14:36:08 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-08-24 14:36:08 +0200
commitfea086334359e715ee388e01c4a4a00f5f379fe4 (patch)
tree4414dcaa23b9fba2072826815d35349ec6063836
parent354ac11bd61ecbb587d101a68e2fdd08b1b1d15d (diff)
Python event: Allow self loops in events
-rw-r--r--wrappers/python/src/event.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/wrappers/python/src/event.py b/wrappers/python/src/event.py
index 0803dee..d0740f8 100644
--- a/wrappers/python/src/event.py
+++ b/wrappers/python/src/event.py
@@ -71,9 +71,6 @@ class EventHandler(object):
func(other_state, data)
def run(self, old_state: int, new_state: int, data: str) -> None:
- if old_state == new_state:
- return
-
# First run leave transitions, then enter
# The state is done when the wait event finishes
self.run_state(old_state, new_state, StateType.Leave, data)