mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
quite likely fix https://trac.torproject.org/projects/tor/ticket/19438
This commit is contained in:
parent
47bdca55af
commit
8c632db436
1 changed files with 5 additions and 3 deletions
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…
Reference in a new issue