Skip to content
Permalink
Browse files
Merge branch 'CB-5753'
Fixes an error where geolocation would stop if the location service
couldn't immediately retrieve a location.
  • Loading branch information
clelland committed Dec 2, 2014
2 parents 41233f6 + 55194aa commit 5c63a069b73844408ec2d7c36d086743200f0c46
Showing 1 changed file with 4 additions and 2 deletions.
@@ -343,8 +343,10 @@ - (void)locationManager:(CLLocationManager*)manager didFailWithError:(NSError*)e
[self returnLocationError:positionError withMessage:[error localizedDescription]];
}

[self.locationManager stopUpdatingLocation];
__locationStarted = NO;
if (error.code != kCLErrorLocationUnknown) {
[self.locationManager stopUpdatingLocation];
__locationStarted = NO;
}
}

//iOS8+

0 comments on commit 5c63a06

Please sign in to comment.