Merge pull request #794 from ngosang/feature/fixloop

webui: fix infinite loop in browser when bazarr stops
pull/800/head
morpheus65535 5 years ago committed by GitHub
commit f8258aa9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
});
}

Loading…
Cancel
Save