mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
#51 - Restart the server took long time, and dashboard will die
This commit is contained in:
parent
df35d07894
commit
e697585145
1 changed files with 10 additions and 3 deletions
|
@ -382,7 +382,7 @@ var Dashboard = {
|
|||
|
||||
setTimeout(function () {
|
||||
Dashboard.reloadPageWhenServerAvailable();
|
||||
}, 500);
|
||||
}, 250);
|
||||
|
||||
}).fail(function () {
|
||||
Dashboard.suppressAjaxErrors = false;
|
||||
|
@ -391,10 +391,17 @@ var Dashboard = {
|
|||
|
||||
reloadPageWhenServerAvailable: function (retryCount) {
|
||||
|
||||
ApiClient.getSystemInfo().done(function () {
|
||||
Dashboard.reloadPage();
|
||||
ApiClient.getSystemInfo().done(function (info) {
|
||||
|
||||
// If this is back to false, the restart completed
|
||||
if (!info.HasPendingRestart) {
|
||||
Dashboard.reloadPage();
|
||||
} else {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
setTimeout(function () {
|
||||
|
||||
retryCount = retryCount || 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue