From 58ff49198f23c1a6a2dd1a1e49004ba4e8983639 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Sun, 1 Jun 2014 18:04:31 -0700 Subject: [PATCH] only update user location once --- ios/MBXViewController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/MBXViewController.mm b/ios/MBXViewController.mm index 797d6c1d5..33e2f6e5e 100644 --- a/ios/MBXViewController.mm +++ b/ios/MBXViewController.mm @@ -204,9 +204,9 @@ llmr::Settings_NSUserDefaults *settings = nullptr; if ([latestLocation distanceFromLocation:[[CLLocation alloc] initWithLatitude:self.mapView.centerCoordinate.latitude longitude:self.mapView.centerCoordinate.longitude]] > 100) { [self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(latestLocation.coordinate.latitude, latestLocation.coordinate.longitude) zoomLevel:17 animated:YES]; - - [self.locationManager stopUpdatingLocation]; } + + [self.locationManager stopUpdatingLocation]; } #pragma clang diagnostic pop