1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00
This commit is contained in:
gorhill 2016-06-19 18:53:03 -04:00
parent 47bdca55af
commit 8c632db436

View File

@ -105,7 +105,9 @@ function startup(data/*, reason*/) {
let tryDelay = 5;
let trySum = 0;
let tryMax = 30000;
// https://trac.torproject.org/projects/tor/ticket/19438
// Try for a longer period.
let tryMax = 600011;
let timer = Cc['@mozilla.org/timer;1']
.createInstance(Ci.nsITimer);
@ -117,8 +119,8 @@ function startup(data/*, reason*/) {
}
timer.init(timerObserver, tryDelay, timer.TYPE_ONE_SHOT);
tryDelay *= 2;
if ( tryDelay > 500 ) {
tryDelay = 500;
if ( tryDelay > 503 ) {
tryDelay = 503;
}
};