diff options
Diffstat (limited to 'music_sampler/actions/wait.py')
-rw-r--r-- | music_sampler/actions/wait.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/music_sampler/actions/wait.py b/music_sampler/actions/wait.py index e6d07f2..bcee649 100644 --- a/music_sampler/actions/wait.py +++ b/music_sampler/actions/wait.py | |||
@@ -1,8 +1,7 @@ | |||
1 | import threading | 1 | import threading |
2 | 2 | ||
3 | def run(action, duration=0, music=None, set_wait_id=None, **kwargs): | 3 | def run(action, duration=0, music=None, set_wait_id=None, **kwargs): |
4 | if set_wait_id is not None: | 4 | action.mapping.add_wait(action, wait_id=set_wait_id) |
5 | action.mapping.add_wait_id(set_wait_id, action) | ||
6 | 5 | ||
7 | action.sleep_event = threading.Event() | 6 | action.sleep_event = threading.Event() |
8 | action.sleep_event_timer = threading.Timer( | 7 | action.sleep_event_timer = threading.Timer( |