Skip to content

Commit

Permalink
Merge pull request #6464 from AvaloniaUI/Takoooooo-patch-1
Browse files Browse the repository at this point in the history
Update AvaloniaSynchronizationContext to don't wrap exceptions
  • Loading branch information
kekekeks committed Sep 6, 2021
2 parents 864e071 + 56eb50b commit d2347bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override void Send(SendOrPostCallback d, object state)
if (Dispatcher.UIThread.CheckAccess())
d(state);
else
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).Wait();
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).GetAwaiter().GetResult();
}


Expand Down

0 comments on commit d2347bf

Please sign in to comment.