mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
refactor: remove core/ folder
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from network.libtorrent_misc import cleanup_session
|
||||
from utils.logging.logs import consoleLog
|
||||
from utils.data.state import state
|
||||
import os
|
||||
|
||||
def closehelper():
|
||||
state.shutdown_event.set()
|
||||
try:
|
||||
cleanup_session()
|
||||
except Exception as e:
|
||||
consoleLog(f"Exception while cleaning up LibTorrent Session: {e}")
|
||||
|
||||
def force_exit():
|
||||
os._exit(0)
|
||||
Reference in New Issue
Block a user