2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

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:
F K 2022-01-21 06:46:03 -05:00 committed by GitHub
parent 1e1aeef958
commit fcf60f6776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}