Skip to content

Commit a7e8cfd

Browse files
authored
Fix a potential deadlock in iOS LineOfSightGeoElement sample (#490)
1 parent 7ab63f5 commit a7e8cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iOS/Xamarin.iOS/Samples/Analysis/LineOfSightGeoElement/LineOfSightGeoElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private MapPoint InterpolatedPoint(MapPoint firstPoint, MapPoint secondPoint, do
188188
private void Geoline_TargetVisibilityChanged(object sender, EventArgs e)
189189
{
190190
// This is needed because Runtime delivers notifications from a different thread that doesn't have access to UI controls
191-
InvokeOnMainThread(UpdateUiAndSelection);
191+
BeginInvokeOnMainThread(UpdateUiAndSelection);
192192
}
193193

194194
private void UpdateUiAndSelection()

0 commit comments

Comments
 (0)