diff --git a/SightKeeper.Avalonia/Program.cs b/SightKeeper.Avalonia/Program.cs index efc1f937..14328070 100644 --- a/SightKeeper.Avalonia/Program.cs +++ b/SightKeeper.Avalonia/Program.cs @@ -31,6 +31,7 @@ public static void Main(string[] args) private static void TaskSchedulerOnUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e) { + e.SetObserved(); Dispatcher.UIThread.InvokeAsync(() => HandleUnhandledExceptions(e.Exception, "TaskScheduler"), DispatcherPriority.Normal); }