diff options
| author | Thog <me@thog.eu> | 2019-12-29 23:37:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-29 23:37:54 +0100 |
| commit | ad84f3a7b3b409ceab920f480dadcfe6eda62c92 (patch) | |
| tree | 2eb87c2d432847b42894a4034e6cd265db922183 | |
| parent | 1db3a66da376c073371a78042e4baecf467ed108 (diff) | |
Fix GUI freeze wehn closing without any emulation running (#853)
| -rw-r--r-- | Ryujinx.HLE/HOS/Horizon.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs index 67f427b7..2e5b7a70 100644 --- a/Ryujinx.HLE/HOS/Horizon.cs +++ b/Ryujinx.HLE/HOS/Horizon.cs @@ -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(); |
