Przeglądaj źródła

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

Thog 6 lat temu
rodzic
commit
ad84f3a7b3
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      Ryujinx.HLE/HOS/Horizon.cs

+ 5 - 5
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();