Rev2099, Keep tor client running until update finished
This commit is contained in:
parent
1d06d30812
commit
742c2fe684
3 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ def main():
|
|||
if main.update_after_shutdown: # Updater
|
||||
import gc
|
||||
import update
|
||||
import atexit
|
||||
# Try cleanup openssl
|
||||
try:
|
||||
if "lib.opensslVerify" in sys.modules:
|
||||
|
@ -48,6 +49,8 @@ def main():
|
|||
handler.close()
|
||||
logger.removeHandler(handler)
|
||||
|
||||
atexit._run_exitfuncs()
|
||||
|
||||
except Exception, err: # Prevent closing
|
||||
import traceback
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue