mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 01:29:48 -06:00
Gracefully close the app on exit (#12)
* Gracefully close the app on exit * Application tear down instead of calling Environment.Exit(0); do a better tear down of the application
This commit is contained in:

committed by
gdkchan

parent
b73fa8eb22
commit
1df2c5ce7f
@ -116,7 +116,7 @@ namespace Ryujinx.OsHle
|
||||
{
|
||||
if (MainThread != null)
|
||||
{
|
||||
while (MainThread.Thread.IsAlive)
|
||||
if (MainThread.Thread.IsAlive)
|
||||
{
|
||||
MainThread.Thread.StopExecution();
|
||||
}
|
||||
@ -124,7 +124,7 @@ namespace Ryujinx.OsHle
|
||||
|
||||
foreach (AThread Thread in TlsSlots.Values)
|
||||
{
|
||||
while (Thread.IsAlive)
|
||||
if (Thread.IsAlive)
|
||||
{
|
||||
Thread.StopExecution();
|
||||
}
|
||||
|
Reference in New Issue
Block a user