diff --git a/src/Ryujinx/Program.cs b/src/Ryujinx/Program.cs index e35a37119..885d43ebb 100644 --- a/src/Ryujinx/Program.cs +++ b/src/Ryujinx/Program.cs @@ -93,7 +93,10 @@ namespace Ryujinx.Ava Console.Title = $"Ryujinx Console {Version}"; // Hook unhandled exception and process exit events. - AppDomain.CurrentDomain.UnhandledException += (sender, e) => ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating); + AppDomain.CurrentDomain.UnhandledException += (sender, e) + => ProcessUnhandledException(e.ExceptionObject as Exception, e.IsTerminating); + TaskScheduler.UnobservedTaskException += (sender, e) + => ProcessUnhandledException(e.Exception, false); AppDomain.CurrentDomain.ProcessExit += (sender, e) => Exit(); // Setup base data directory.