Fix GUI freeze wehn closing without any emulation running (#853)

This commit is contained in:
Thog 2019-12-29 23:37:54 +01:00 committed by GitHub
parent 1db3a66da3
commit ad84f3a7b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -766,13 +766,13 @@ namespace Ryujinx.HLE.HOS
foreach (KProcess process in Processes.Values) foreach (KProcess process in Processes.Values)
{ {
process.Terminate(); process.Terminate();
// Exit ourself now!
Scheduler.ExitThread(terminationThread);
Scheduler.GetCurrentThread().Exit();
Scheduler.RemoveThread(terminationThread);
} }
} }
// Exit ourself now!
Scheduler.ExitThread(terminationThread);
Scheduler.GetCurrentThread().Exit();
Scheduler.RemoveThread(terminationThread);
}); });
terminationThread.Start(); terminationThread.Start();