diff options
Diffstat (limited to 'helpers/actions/wait.py')
-rw-r--r-- | helpers/actions/wait.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/actions/wait.py b/helpers/actions/wait.py index f7d2a78..ea42408 100644 --- a/helpers/actions/wait.py +++ b/helpers/actions/wait.py | |||
@@ -5,7 +5,9 @@ def run(action, duration=0, music=None, set_wait_id=None, **kwargs): | |||
5 | action.mapping.add_wait_id(set_wait_id, action) | 5 | action.mapping.add_wait_id(set_wait_id, action) |
6 | 6 | ||
7 | action.sleep_event = threading.Event() | 7 | action.sleep_event = threading.Event() |
8 | action.sleep_event_timer = threading.Timer(duration, action.sleep_event.set) | 8 | action.sleep_event_timer = threading.Timer( |
9 | duration, | ||
10 | action.sleep_event.set) | ||
9 | 11 | ||
10 | if music is not None: | 12 | if music is not None: |
11 | music.wait_end() | 13 | music.wait_end() |