Skip to content

Commit d2347bf

Browse files
authored
Merge pull request #6464 from AvaloniaUI/Takoooooo-patch-1
Update AvaloniaSynchronizationContext to don't wrap exceptions
2 parents 864e071 + 56eb50b commit d2347bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avalonia.Base/Threading/AvaloniaSynchronizationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public override void Send(SendOrPostCallback d, object state)
3939
if (Dispatcher.UIThread.CheckAccess())
4040
d(state);
4141
else
42-
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).Wait();
42+
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).GetAwaiter().GetResult();
4343
}
4444

4545

0 commit comments

Comments
 (0)