зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301269 - Fix update retry timer is released before firing. r=francois
MozReview-Commit-ID: KF1j2EFuxpa --HG-- extra : rebase_source : 5c0a4d18d2fd4c6e615a975573d194344bba832c
This commit is contained in:
Родитель
b003df4b6a
Коммит
b21dcb43d7
|
@ -6,8 +6,9 @@ const { classes: Cc, interfaces: Ci, results: Cr } = Components;
|
|||
var dbService = Cc["@mozilla.org/url-classifier/dbservice;1"]
|
||||
.getService(Ci.nsIUrlClassifierDBService);
|
||||
|
||||
var timer;
|
||||
function setTimeout(callback, delay) {
|
||||
let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
timer.initWithCallback({ notify: callback },
|
||||
delay,
|
||||
Ci.nsITimer.TYPE_ONE_SHOT);
|
||||
|
|
Загрузка…
Ссылка в новой задаче