From 5998395f27b741a4c0f87cb96d925fd297054595 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sat, 6 Jan 2018 10:53:50 -0500 Subject: [PATCH] sleep(interval) sleep time should be constant value and not an increasing value. --- killstream/wait_kill_pause_notify_sub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: