diff --git a/killstream/wait_kill_pause_notify_sub.py b/killstream/wait_kill_pause_notify_sub.py index c9ebcbc..7c875ef 100644 --- a/killstream/wait_kill_pause_notify_sub.py +++ b/killstream/wait_kill_pause_notify_sub.py @@ -25,12 +25,15 @@ interval = int(sys.argv[3]) x = 0 try: + print('Executing sub script.') while x < timeout and x is not None: sleep(x) if kill_stream(check_session(sessionKey), interval, timeout) is not None: x += kill_stream(check_session(sessionKey), interval, timeout) else: + print('Exiting sub script.') exit(0) + print('Sub script initiating kill.') kill_stream(check_session(sessionKey), timeout, timeout) except Exception as e: