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 012380b6dc
commit 9168467019

View File

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