mirror of
https://github.com/gorhill/uBlock.git
synced 2025-01-31 20:21:35 +01:00
quite likely fix https://trac.torproject.org/projects/tor/ticket/19438
This commit is contained in:
parent
47bdca55af
commit
8c632db436
8
platform/firefox/bootstrap.js
vendored
8
platform/firefox/bootstrap.js
vendored
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user