Explorar o código

[HLE/Kernel] Dispose the thread wait even on exit

gdkchan %!s(int64=8) %!d(string=hai) anos
pai
achega
62b2124c03
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs

+ 2 - 0
Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs

@@ -161,6 +161,8 @@ namespace Ryujinx.Core.OsHle.Handles
                 if (AllThreads.TryRemove(Thread, out SchedulerThread SchedThread))
                 {
                     WaitingToRun[Thread.ProcessorId].Remove(SchedThread);
+
+                    SchedThread.Dispose();
                 }
 
                 SchedulerThread NewThread = WaitingToRun[Thread.ProcessorId].Pop();