Skip to content

Commit

Permalink
Merge pull request xamarin#1815 from SiNeumann/dev/fix_location_always
Browse files Browse the repository at this point in the history
set result after cleanup of locationmanager xamarin#1489
  • Loading branch information
jfversluis authored Apr 4, 2022
2 parents 7bb913f + 7c15655 commit f96ef75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ void LocationAuthCallback(object sender, CLAuthorizationChangedEventArgs e)
}

del.AuthorizationStatusChanged -= LocationAuthCallback;
tcs.TrySetResult(GetLocationStatus(whenInUse));
locationManager?.Dispose();
locationManager = null;
tcs.TrySetResult(GetLocationStatus(whenInUse));
}
catch (Exception ex)
{
Expand Down

0 comments on commit f96ef75

Please sign in to comment.