mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
fix: implement forced exit on shutdown and enhance shutdown handling
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import threading
|
||||
from core.network.libtorrent_misc import cleanup_session
|
||||
from core.utils.general.wrappers import run_thread
|
||||
import os
|
||||
|
||||
shutdown_event = threading.Event()
|
||||
|
||||
def closehelper():
|
||||
run_thread(threading.Thread(target=cleanup_session))
|
||||
shutdown_event.set()
|
||||
shutdown_event.set()
|
||||
|
||||
def force_exit():
|
||||
os._exit(0)
|
||||
Reference in New Issue
Block a user