Wait for async task to complete

This way exceptions thrown during the execution of CheckLaunchState()
will correctly invoke the unhandled exception handler
and cause Ryujinx to crash.
This commit is contained in:
TSR Berry 2024-07-28 22:16:21 +02:00
parent 6ce49a2dc7
commit 753df861e5
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -474,9 +474,7 @@ namespace Ryujinx.Ava.UI.Windows
LoadApplications();
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
CheckLaunchState();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
CheckLaunchState().Wait();
}
private void SetMainContent(Control content = null)