Skip to content
Permalink
Browse files
Do not stop updating location when the error is 'kCLErrorLocationUnkn…
…own'
  • Loading branch information
tiff committed Nov 5, 2014
1 parent 887df52 commit 55194aab45a17335e7bc581c3ce031c5311991f9
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 55194aa

Please sign in to comment.