* Fix #162044

* Fix #162044 - wait unti all are settled
This commit is contained in:
Sandeep Somavarapu 2022-09-28 18:01:43 +02:00 committed by GitHub
parent eb99a782ff
commit c532da7b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -354,7 +354,12 @@ export class UserDataProfilesService extends Disposable implements IUserDataProf
joiners.push(promise);
}
});
await Promises.settled(joiners);
try {
await Promise.allSettled(joiners);
} catch (error) {
this.logService.error(error);
}
if (profile.id === this.profilesObject.emptyWindow?.id) {
this.profilesObject.emptyWindow = undefined;