sleep(interval)
sleep time should be constant value and not an increasing value.
This commit is contained in:
parent
465d47b668
commit
5998395f27
@ -27,7 +27,7 @@ x = 0
|
|||||||
try:
|
try:
|
||||||
print('Executing sub script.')
|
print('Executing sub script.')
|
||||||
while x < timeout and x is not None:
|
while x < timeout and x is not None:
|
||||||
sleep(x)
|
sleep(interval)
|
||||||
if kill_stream(check_session(sessionKey), interval, timeout) is not None:
|
if kill_stream(check_session(sessionKey), interval, timeout) is not None:
|
||||||
x += kill_stream(check_session(sessionKey), interval, timeout)
|
x += kill_stream(check_session(sessionKey), interval, timeout)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user