mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Fix some instant crashing
Happens very quickly on practice mode when spam switching tasks
This commit is contained in:
1 parent
850e82155c
commit
3eb0a4fdb3
1 file changed
+1
-2
@@ -342,9 +342,8 @@ public static class Extensions
|
||||
{
|
||||
yield return Resources.UnloadUnusedAssets();
|
||||
|
||||
GC.Collect(0, GCCollectionMode.Forced, blocking: true);
|
||||
GC.WaitForPendingFinalizers();
|
||||
GC.Collect(0, GCCollectionMode.Forced, blocking: true);
|
||||
GC.Collect(0, GCCollectionMode.Forced);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user