aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2024-09-17 20:42:00 +0200
committerGitHub <noreply@github.com>2024-09-17 15:42:00 -0300
commitccf96bf5e673456ec80f72725e4c9afa4e4c5a85 (patch)
treec57667b3769d62e8bdb5ebf08863e0072da126f8
parentf39e89ece79436f5058bb58d50a1a4dcd6823f4e (diff)
Wait for async task to complete (#7122)1.1.1391
This way exceptions thrown during the execution of CheckLaunchState() will correctly invoke the unhandled exception handler and cause Ryujinx to crash.
-rw-r--r--src/Ryujinx/UI/Windows/MainWindow.axaml.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs
index 348412e78..1f57ada38 100644
--- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs
+++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs
@@ -482,9 +482,7 @@ namespace Ryujinx.Ava.UI.Windows
482 LoadApplications(); 482 LoadApplications();
483 } 483 }
484 484
485#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed 485 CheckLaunchState().Wait();
486 CheckLaunchState();
487#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
488 } 486 }
489 487
490 private void SetMainContent(Control content = null) 488 private void SetMainContent(Control content = null)