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.
This commit is contained in:
parent
1e1aeef958
commit
fcf60f6776
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ namespace Observatory.PluginManagement
|
||||||
|
|
||||||
//Importing Observatory.Framework in the Explorer Lua scripts causes an attempt to reload
|
//Importing Observatory.Framework in the Explorer Lua scripts causes an attempt to reload
|
||||||
//the assembly, just hand it back the one we already have.
|
//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();
|
return context.Assemblies.Where(a => a.FullName.Contains("ObservatoryFramework")).First();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue