Remove thread from the threads list when it finishes, remove debug code

This commit is contained in:
gdkchan
2018-04-26 00:07:12 -03:00
parent 2f1250ab04
commit 81e74ebd86
2 changed files with 1 additions and 3 deletions

View File

@ -345,7 +345,7 @@ namespace Ryujinx.Core.OsHle
{
TlsSlots.TryRemove(GetTlsSlot(Thread.ThreadState.Tpidr), out _);
KThread KernelThread = GetThread(Thread.ThreadState.Tpidr);
Threads.TryRemove(Thread.ThreadState.Tpidr, out KThread KernelThread);
Scheduler.RemoveThread(KernelThread);