forked from Mirror/Ryujinx
Fix GUI freeze wehn closing without any emulation running (#853)
This commit is contained in:
parent
1db3a66da3
commit
ad84f3a7b3
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue