Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Sep 11, 2024
1 parent 4480909 commit 9a6c939
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion JL.Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ private bool IsSingleInstance()
private void LogUnhandledException(object sender, UnhandledExceptionEventArgs args)
{
Utils.Logger.Fatal((Exception)args.ExceptionObject, "Unhandled exception");
Shutdown();
if (!args.IsTerminating)
{
Shutdown();
}
}

private void LogUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs args)
Expand Down

0 comments on commit 9a6c939

Please sign in to comment.