From ae9caecc52cdd40c32d369756e517f3705504e02 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 6 Jun 2019 15:40:08 +0200 Subject: [PATCH] fix race condition 2 --- www/common/outer/async-store.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 6198b0b96..19b4a4fe4 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1643,6 +1643,9 @@ define([ state: 2 }); userObject.migrate(waitFor()); + }).nThen(function (waitFor) { + Store.initAnonRpc(null, null, waitFor()); + Store.initRpc(null, null, waitFor()); }).nThen(function (waitFor) { loadMailbox(waitFor); Migrate(proxy, waitFor(), function (version, progress) { @@ -1651,8 +1654,6 @@ define([ progress: progress }); }); - Store.initAnonRpc(null, null, waitFor()); - Store.initRpc(null, null, waitFor()); }).nThen(function (waitFor) { postMessage(clientId, 'LOADING_DRIVE', { state: 3