Bug 711263 - Fix potential race condition when saving add-on reconciler state; r=philikon

a=philikon for landing on s-c after train departure because it seems to
fix an xpcshell orange.
This commit is contained in:
Gregory Szorc 2011-12-16 13:58:23 -08:00
parent 86df361578
commit f99eba4f25

View File

@ -633,7 +633,9 @@ AddonsReconciler.prototype = {
}
}
this.saveState(null, null);
let cb = Async.makeSpinningCallback();
this.saveState(null, cb);
cb.wait();
}
catch (ex) {
this._log.warn("Exception: " + Utils.exceptionStr(ex));