summaryrefslogtreecommitdiffstats
path: root/services/sync/modules/status.js
diff options
context:
space:
mode:
Diffstat (limited to 'services/sync/modules/status.js')
-rw-r--r--services/sync/modules/status.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/sync/modules/status.js b/services/sync/modules/status.js
index 100bc7965..4b26f62bd 100644
--- a/services/sync/modules/status.js
+++ b/services/sync/modules/status.js
@@ -30,7 +30,10 @@ this.Status = {
.wrappedJSObject;
let idClass = service.fxAccountsEnabled ? BrowserIDManager : IdentityManager;
this.__authManager = new idClass();
- this.__authManager.initialize();
+ // .initialize returns a promise, so we need to spin until it resolves.
+ let cb = Async.makeSpinningCallback();
+ this.__authManager.initialize().then(cb, cb);
+ cb.wait();
return this.__authManager;
},