fix: implement forced exit on shutdown and enhance shutdown handling

This commit is contained in:
Vxrtrauter
2026-03-07 22:10:45 +01:00
parent eccdb2f068
commit f030795f10
4 changed files with 15 additions and 7 deletions
+5 -4
View File
@@ -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)