mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
webui: fix infinite loop in browser when bazarr stops
This commit is contained in:
parent
a1a452e452
commit
b9d4863fef
1 changed files with 4 additions and 8 deletions
|
@ -423,18 +423,14 @@
|
||||||
ratio: '{value} / {total}'
|
ratio: '{value} / {total}'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
},
|
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
||||||
complete: function (data) {
|
|
||||||
// Schedule the next
|
|
||||||
if (data.responseText !== "") {
|
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
|
||||||
} else {
|
} else {
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue