Fix race condition with nthen

This commit is contained in:
yflory
2019-06-06 15:33:08 +02:00
parent 5477b83865
commit 62c96d562f
2 changed files with 2 additions and 2 deletions

View File

@@ -1644,6 +1644,7 @@ define([
});
userObject.migrate(waitFor());
}).nThen(function (waitFor) {
loadMailbox(waitFor);
Migrate(proxy, waitFor(), function (version, progress) {
postMessage(clientId, 'LOADING_DRIVE', {
state: (2 + (version / 10)),
@@ -1661,7 +1662,6 @@ define([
loadMessenger();
loadCursor();
loadOnlyOffice();
loadMailbox(waitFor);
loadUniversal(Profile, 'profile', waitFor);
cleanFriendRequests();
}).nThen(function () {