Fix error
This commit is contained in:
parent
4607239fa9
commit
c4bfd17e52
1 changed files with 2 additions and 2 deletions
|
@ -1512,7 +1512,7 @@ if(appInfo.platformVersion[0] >= 2) {
|
|||
/**
|
||||
* Pumps a generator until it yields false. See schema.js for an example.
|
||||
*/
|
||||
this.pumpGenerator = function(generator) {
|
||||
this.pumpGenerator = function(generator, ms) {
|
||||
_waiting++;
|
||||
|
||||
var timer = Components.classes["@mozilla.org/timer;1"].
|
||||
|
@ -1524,7 +1524,7 @@ if(appInfo.platformVersion[0] >= 2) {
|
|||
_waiting--;
|
||||
}
|
||||
}}
|
||||
timer.initWithCallback(timerCallback, ms, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK);
|
||||
timer.initWithCallback(timerCallback, ms ? ms : 0, Components.interfaces.nsITimer.TYPE_REPEATING_SLACK);
|
||||
// add timer to global scope so that it doesn't get garbage collected before it completes
|
||||
_runningTimers.push(timer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue