Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: adblockplus/issue-6070.patch

Issue 29617588: Issue 6070 - Filter list not loaded after install without internet (Closed)
Patch Set: Created Nov. 24, 2017, 11:17 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « adblockplus/build.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblockplus/issue-6070.patch
===================================================================
new file mode 100644
--- /dev/null
+++ b/adblockplus/issue-6070.patch
@@ -0,0 +1,46 @@
+Issue 6070 - Filter list not loaded after install without internet
+
+diff --git a/lib/downloader.js b/lib/downloader.js
+--- a/lib/downloader.js
++++ b/lib/downloader.js
+@@ -75,17 +75,17 @@ Downloader.prototype =
+ * @type {number}
+ */
+ maxAbsenceInterval: 1 * MILLIS_IN_DAY,
+
+ /**
+ * Minimal time interval before retrying a download after an error.
+ * @type {number}
+ */
+- minRetryInterval: 1 * MILLIS_IN_DAY,
++ minRetryInterval: 30 * MILLIS_IN_SECOND,
+
+ /**
+ * Maximal allowed expiration interval, larger expiration intervals will be
+ * corrected.
+ * @type {number}
+ */
+ maxExpirationInterval: 14 * MILLIS_IN_DAY,
+
+diff --git a/lib/synchronizer.js b/lib/synchronizer.js
+--- a/lib/synchronizer.js
++++ b/lib/synchronizer.js
+@@ -27,17 +27,17 @@ const {Downloader, Downloadable,
+ const {Filter} = require("filterClasses");
+ const {FilterStorage} = require("filterStorage");
+ const {FilterNotifier} = require("filterNotifier");
+ const {Prefs} = require("prefs");
+ const {Subscription, DownloadableSubscription} = require("subscriptionClasses");
+ const {Utils} = require("utils");
+
+ const INITIAL_DELAY = 1 * MILLIS_IN_MINUTE;
+-const CHECK_INTERVAL = 1 * MILLIS_IN_HOUR;
++const CHECK_INTERVAL = 2 * MILLIS_IN_MINUTE;
+ const DEFAULT_EXPIRATION_INTERVAL = 5 * MILLIS_IN_DAY;
+
+ /**
+ * The object providing actual downloading functionality.
+ * @type {Downloader}
+ */
+ let downloader = null;
+
« no previous file with comments | « adblockplus/build.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld