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:
1 parent
411b9a9a88
commit
23c38b1f4e
1 file changed
+2
-2
@@ -325,6 +325,8 @@ export class ExtensionLoader {
|
|||||||
extension,
|
extension,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.instances.set(extId, instance);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
extId,
|
extId,
|
||||||
instance,
|
instance,
|
||||||
@@ -353,8 +355,6 @@ export class ExtensionLoader {
|
|||||||
logger.error(`${logModule}: failed to enable`, { ext: extension, err });
|
logger.error(`${logModule}: failed to enable`, { ext: extension, err });
|
||||||
});
|
});
|
||||||
|
|
||||||
this.instances.set(extension.extId, extension.instance);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isBundled: extension.isBundled,
|
isBundled: extension.isBundled,
|
||||||
loaded,
|
loaded,
|
||||||
|
|||||||
Reference in new issue
Block a user