mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix race condition with extension loading. (#4724)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
411b9a9a88
commit
23c38b1f4e
@ -325,6 +325,8 @@ export class ExtensionLoader {
|
||||
extension,
|
||||
);
|
||||
|
||||
this.instances.set(extId, instance);
|
||||
|
||||
return {
|
||||
extId,
|
||||
instance,
|
||||
@ -353,8 +355,6 @@ export class ExtensionLoader {
|
||||
logger.error(`${logModule}: failed to enable`, { ext: extension, err });
|
||||
});
|
||||
|
||||
this.instances.set(extension.extId, extension.instance);
|
||||
|
||||
return {
|
||||
isBundled: extension.isBundled,
|
||||
loaded,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user