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:
check_status()
try:
time.sleep(1)
time.sleep(5)
except (KeyboardInterrupt, SystemExit):
pass

View File

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