Avoid condition if already true

main2
Bob Mottram 2019-10-23 11:23:43 +01:00
parent 68c3e03279
commit b023cda55d
1 changed files with 6 additions and 5 deletions

View File

@ -88,6 +88,7 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None:
if debug:
print('DEBUG: thread is not alive')
removeThread=True
else:
# timeout for started threads
if (currTime-th.startTime).total_seconds()>120:
if debug: