diff --git a/JL.Windows/App.xaml.cs b/JL.Windows/App.xaml.cs index 54c14039..b34a2176 100644 --- a/JL.Windows/App.xaml.cs +++ b/JL.Windows/App.xaml.cs @@ -62,18 +62,18 @@ private bool IsSingleInstance() return true; } - private void LogUnhandledException(object sender, UnhandledExceptionEventArgs args) + private static void LogUnhandledException(object sender, UnhandledExceptionEventArgs args) { Utils.Logger.Fatal((Exception)args.ExceptionObject, "Unhandled exception"); - if (!args.IsTerminating) - { - Shutdown(); - } + //if (!args.IsTerminating) + //{ + // Shutdown(); + //} } - private void LogUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs args) + private static void LogUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs args) { Utils.Logger.Fatal(args.Exception, "Unobserved task exception"); - Shutdown(); + // Shutdown(); } }