forked from indymedia/epicyon
Avoid condition if already true
parent
68c3e03279
commit
b023cda55d
|
@ -88,6 +88,7 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: thread is not alive')
|
print('DEBUG: thread is not alive')
|
||||||
removeThread=True
|
removeThread=True
|
||||||
|
else:
|
||||||
# timeout for started threads
|
# timeout for started threads
|
||||||
if (currTime-th.startTime).total_seconds()>120:
|
if (currTime-th.startTime).total_seconds()>120:
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue