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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « adblockplus/build.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Issue 6070 - Filter list not loaded after install without internet
2
3 diff --git a/lib/downloader.js b/lib/downloader.js
4 --- a/lib/downloader.js
5 +++ b/lib/downloader.js
6 @@ -75,17 +75,17 @@ Downloader.prototype =
7 * @type {number}
8 */
9 maxAbsenceInterval: 1 * MILLIS_IN_DAY,
10
11 /**
12 * Minimal time interval before retrying a download after an error.
13 * @type {number}
14 */
15 - minRetryInterval: 1 * MILLIS_IN_DAY,
16 + minRetryInterval: 30 * MILLIS_IN_SECOND,
17
18 /**
19 * Maximal allowed expiration interval, larger expiration intervals will be
20 * corrected.
21 * @type {number}
22 */
23 maxExpirationInterval: 14 * MILLIS_IN_DAY,
24
25 diff --git a/lib/synchronizer.js b/lib/synchronizer.js
26 --- a/lib/synchronizer.js
27 +++ b/lib/synchronizer.js
28 @@ -27,17 +27,17 @@ const {Downloader, Downloadable,
29 const {Filter} = require("filterClasses");
30 const {FilterStorage} = require("filterStorage");
31 const {FilterNotifier} = require("filterNotifier");
32 const {Prefs} = require("prefs");
33 const {Subscription, DownloadableSubscription} = require("subscriptionClasses") ;
34 const {Utils} = require("utils");
35
36 const INITIAL_DELAY = 1 * MILLIS_IN_MINUTE;
37 -const CHECK_INTERVAL = 1 * MILLIS_IN_HOUR;
38 +const CHECK_INTERVAL = 2 * MILLIS_IN_MINUTE;
39 const DEFAULT_EXPIRATION_INTERVAL = 5 * MILLIS_IN_DAY;
40
41 /**
42 * The object providing actual downloading functionality.
43 * @type {Downloader}
44 */
45 let downloader = null;
46
OLDNEW
« 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