From 3e42b4a97f39ee7c2363b5e783b82f4658a6eb32 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 6 Jul 2018 09:50:41 -0400 Subject: [PATCH] fix https://github.com/AdguardTeam/FiltersRegistry/issues/82 --- src/js/assets.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/assets.js b/src/js/assets.js index 397ae5c5f..5f75912fc 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -217,7 +217,13 @@ api.fetchFilterList = function(mainlistURL, onLoad, onError) { onLoad(details); }; + // https://github.com/AdguardTeam/FiltersRegistry/issues/82 + // Not checking for `errored` status was causing repeated notifications + // to the caller. This can happens when more than one out of multiple + // sublists can't be fetched. var onLocalLoadError = function(details) { + if ( errored ) { return; } + errored = true; details.url = mainlistURL; details.content = '';