mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Fix comment
This commit is contained in:
parent
723b2ffc29
commit
2848dbc1a1
1 changed files with 3 additions and 1 deletions
|
@ -129,9 +129,11 @@ signal.signal(signal.SIGTERM, lambda *a: exit(servers))
|
||||||
try:
|
try:
|
||||||
while threads:
|
while threads:
|
||||||
threads[0].join(1) # try one second
|
threads[0].join(1) # try one second
|
||||||
if threading.active_count() <= len(threads): # one thread died
|
if threading.active_count() <= len(threads):
|
||||||
|
# at least one thread died -- exit all
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
# no unwanted traceback :)
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
exit(servers)
|
exit(servers)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue