Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Nov 12, 2019
1 parent 833fc80 commit 2602a05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion bazarr/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8

bazarr_version = '0.8.3.2'
bazarr_version = '0.8.3.3'

import os
os.environ["SZ_USER_AGENT"] = "Bazarr/1"
Expand Down Expand Up @@ -190,6 +190,7 @@ def shutdown():
else:
stop_file.write('')
stop_file.close()
sys.exit(0)


@route(base_url + 'restart')
Expand All @@ -208,6 +209,7 @@ def restart():
logging.info('Bazarr is being restarted...')
restart_file.write('')
restart_file.close()
sys.exit(0)


@route(base_url + 'wizard')
Expand Down
8 changes: 4 additions & 4 deletions views/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@
$('#loader_text').text("Bazarr is restarting. Please Wait...");
$.ajax({
url: "{{base_url}}restart",
async: true
async: true,
error: (function(){
setTimeout(function(){ setInterval(ping, 2000); },8000);
})
})
.done(function(){
setTimeout(function(){ setInterval(ping, 2000); },8000);
});
});

% from config import settings
Expand Down
12 changes: 6 additions & 6 deletions views/system.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@
$('#restart').on('click', function(){
$('#loader_text').text("Bazarr is restarting, please wait...");
$.ajax({
url: "{{base_url}}restart",
async: true
})
.done(function(){
setTimeout(function(){ setInterval(ping, 2000); },8000);
})
url: "{{base_url}}restart",
async: true,
error: (function () {
setTimeout(function () { setInterval(ping, 2000); }, 8000);
})
});
});

% from config import settings
Expand Down

0 comments on commit 2602a05

Please sign in to comment.