diff --git a/killstream/wait_kill_pause_notify_sub.py b/killstream/wait_kill_pause_notify_sub.py index 7c875ef..3d845a9 100644 --- a/killstream/wait_kill_pause_notify_sub.py +++ b/killstream/wait_kill_pause_notify_sub.py @@ -27,7 +27,7 @@ x = 0 try: print('Executing sub script.') while x < timeout and x is not None: - sleep(x) + sleep(interval) if kill_stream(check_session(sessionKey), interval, timeout) is not None: x += kill_stream(check_session(sessionKey), interval, timeout) else: