From b9d4863fefdd26ebd85fd5a0f96546e61317b7e5 Mon Sep 17 00:00:00 2001 From: ngosang Date: Sat, 1 Feb 2020 02:13:23 +0100 Subject: [PATCH] webui: fix infinite loop in browser when bazarr stops --- views/menu.tpl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/views/menu.tpl b/views/menu.tpl index 3f5dec777..7314b4946 100644 --- a/views/menu.tpl +++ b/views/menu.tpl @@ -423,18 +423,14 @@ ratio: '{value} / {total}' } }); - } - }, - complete: function (data) { - // Schedule the next - if (data.responseText !== "") { - notificationTimeout = setTimeout(doNotificationsAjax, 100); + + notificationTimeout = setTimeout(doNotificationsAjax, 100); } else { - notificationTimeout = setTimeout(doNotificationsAjax, 5000); + notificationTimeout = setTimeout(doNotificationsAjax, 5000); } }, error: function () { - notificationTimeout = setTimeout(doNotificationsAjax, 5000); + notificationTimeout = setTimeout(doNotificationsAjax, 5000); } }); }