mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
16 lines
308 B
Python
16 lines
308 B
Python
from core.utils.data.state import state
|
|
import threading
|
|
|
|
|
|
shutdown_event = threading.Event()
|
|
|
|
def kill_aria2server():
|
|
if state.aria2process:
|
|
state.aria2process.kill()
|
|
if state.debug:
|
|
print("\nKilled Aria2")
|
|
|
|
|
|
def closehelper():
|
|
shutdown_event.set()
|
|
kill_aria2server() |