From fcf60f67761240ae634c04f7f4ea9018589290a0 Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Fri, 21 Jan 2022 06:46:03 -0500 Subject: [PATCH] For some reason this check failed and resulted in a stack overflow (#52) Added a second condition to the Observatory.Framework assembly loading check to prevent a stack overflow condition. --- ObservatoryCore/PluginManagement/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryCore/PluginManagement/PluginManager.cs b/ObservatoryCore/PluginManagement/PluginManager.cs index 628d74c..e0780f7 100644 --- a/ObservatoryCore/PluginManagement/PluginManager.cs +++ b/ObservatoryCore/PluginManagement/PluginManager.cs @@ -250,7 +250,7 @@ namespace Observatory.PluginManagement //Importing Observatory.Framework in the Explorer Lua scripts causes an attempt to reload //the assembly, just hand it back the one we already have. - if (name.Name.StartsWith("Observatory.Framework")) + if (name.Name.StartsWith("Observatory.Framework") || name.Name == "ObservatoryFramework") { return context.Assemblies.Where(a => a.FullName.Contains("ObservatoryFramework")).First(); }