Fix race condition with nthen
This commit is contained in:
parent
5477b83865
commit
62c96d562f
@ -197,7 +197,7 @@ define([
|
||||
}, 500);
|
||||
progress(0, 0);*/
|
||||
}).nThen(function () {
|
||||
cb();
|
||||
setTimeout(cb);
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user