mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
Avoid condition if already true
This commit is contained in:
1 parent
68c3e03279
commit
b023cda55d
1 file changed
+6
-5
+6
-5
@@ -88,11 +88,12 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None:
|
||||
if debug:
|
||||
print('DEBUG: thread is not alive')
|
||||
removeThread=True
|
||||
# timeout for started threads
|
||||
if (currTime-th.startTime).total_seconds()>120:
|
||||
if debug:
|
||||
print('DEBUG: started thread timed out')
|
||||
removeThread=True
|
||||
else:
|
||||
# timeout for started threads
|
||||
if (currTime-th.startTime).total_seconds()>120:
|
||||
if debug:
|
||||
print('DEBUG: started thread timed out')
|
||||
removeThread=True
|
||||
else:
|
||||
# timeout for threads which havn't been started
|
||||
if (currTime-th.startTime).total_seconds()>60*10:
|
||||
|
||||
Reference in new issue
Block a user