Double the pypo->liquidsoap timeout on second attempt if first attempt failed
This commit is contained in:
parent
02101db088
commit
f34a6d201a
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ def __timeout(func, timeout_duration, default, args, kwargs):
|
|||
while True:
|
||||
it = InterruptableThread()
|
||||
it.start()
|
||||
if not first_attempt:
|
||||
timeout_duration = timeout_duration * 2
|
||||
it.join(timeout_duration)
|
||||
|
||||
if it.isAlive():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue