diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm index c2f8705f..9f13228f 100644 --- a/common/modules/storage.jsm +++ b/common/modules/storage.jsm @@ -80,10 +80,10 @@ function Timer(minInterval, maxInterval, callback) { timer.cancel(); this.doneAt = 0; - } + }; this.flush = function () { - if (this.latest) + if (this.doneAt == -1) this.notify(); }; }