fixed shutdown issues, added shutdown event for download notification

This commit is contained in:
Vxrtrauter
2025-10-11 20:49:42 +02:00
parent c151b87da9
commit 77343e6300
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ def dlprogress():
except:
return 0
def send_notification():
while True:
def send_notification(shutdown_event):
while not shutdown_event.is_set():
try:
for download in state.aria2.get_downloads():
if dlprogress() == 100: