Stop sync requests after qbt has been shutdown

This commit is contained in:
Chocobo1 2024-02-12 14:57:53 +08:00
parent a9741bb203
commit e31b553807
2 changed files with 24 additions and 7 deletions

View file

@ -1159,7 +1159,8 @@ const initializeWindows = function() {
onSuccess: function() {
document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="UTF-8"> <meta name="color-scheme" content="light dark" /> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>');
document.close();
stop();
window.stop();
window.qBittorrent.Client.stop();
}
}).send();
}