Skip to content

Commit

Permalink
#599 Fix async bug in OnUIThreadAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Sampson committed Apr 14, 2019
1 parent 7d2cd98 commit c656c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Platform/XamlPlatformProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public virtual Task OnUIThreadAsync(Func<Task> action) {
#if WINDOWS_UWP
return dispatcher.RunTaskAsync(action);
#else
return dispatcher.InvokeAsync(action).Task;
return dispatcher.InvokeAsync(action).Task.Unwrap();
#endif
}

Expand Down

0 comments on commit c656c51

Please sign in to comment.