1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-23 14:31:06 +00:00
This commit is contained in:
Louis Vézina 2020-04-15 11:32:40 -04:00
parent 1b0e721a9d
commit 63c60b2c1f
2 changed files with 6 additions and 9 deletions

View file

@ -80,6 +80,6 @@ if __name__ == '__main__':
while True: while True:
check_status() check_status()
try: try:
time.sleep(1) time.sleep(5)
except (KeyboardInterrupt, SystemExit): except (KeyboardInterrupt, SystemExit):
pass pass

View file

@ -401,14 +401,11 @@
$('#loader_text').text("Bazarr is restarting, please wait..."); $('#loader_text').text("Bazarr is restarting, please wait...");
$('#reconnect_overlay').show(); $('#reconnect_overlay').show();
$.ajax({ $.ajax({
url: "{{ url_for('restart') }}", url: "{{ url_for('restart') }}"
async: true, })
error: (function () {
setTimeout(function () { setTimeout(function () {
setInterval(ping, 2000); setInterval(ping, 2000);
}, 8000); }, 8000);
})
});
}); });
function ping() { function ping() {