mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 01:49:42 +02:00
13 lines
270 B
Python
13 lines
270 B
Python
from core.utils.data.state import state
|
|
import os
|
|
|
|
def closehelper():
|
|
state.shutdown_event.set()
|
|
try:
|
|
from core.network.libtorrent_misc import cleanup_session
|
|
cleanup_session()
|
|
except Exception:
|
|
pass
|
|
|
|
def force_exit():
|
|
os._exit(0) |