Removed GC.WaitForPendingFinalizers because it just causes the entire program to hang

This commit is contained in:
EvilFactory
2023-10-25 20:21:08 -03:00
parent 79dd55836f
commit 36f767f388

View File

@@ -537,7 +537,6 @@ public class AssemblyManager
try
{
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced); // force the gc to collect unloaded acls.
GC.WaitForPendingFinalizers();
List<WeakReference<MemoryFileAssemblyContextLoader>> toRemove = new();
foreach (WeakReference<MemoryFileAssemblyContextLoader> weakReference in UnloadingACLs)
{