Fix GUI freeze wehn closing without any emulation running

This commit is contained in:
Thog 2019-12-29 23:13:27 +01:00
parent 1db3a66da3
commit 7f7f8e7f33
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -766,13 +766,13 @@ namespace Ryujinx.HLE.HOS
foreach (KProcess process in Processes.Values)
{
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();