From 5369a3331a22697c9e6180af31ad6c794ec7e23a Mon Sep 17 00:00:00 2001 From: dolar <99186613+dolar1111@users.noreply.github.com> Date: Wed, 4 Oct 2023 01:51:35 +0530 Subject: [PATCH] removed exception as not needed we are already setting confirmationHandler to nil in the end --- geolocator_apple/ios/Classes/Handlers/PermissionHandler.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/geolocator_apple/ios/Classes/Handlers/PermissionHandler.m b/geolocator_apple/ios/Classes/Handlers/PermissionHandler.m index 2b216e38..92576769 100644 --- a/geolocator_apple/ios/Classes/Handlers/PermissionHandler.m +++ b/geolocator_apple/ios/Classes/Handlers/PermissionHandler.m @@ -50,13 +50,6 @@ - (void) requestPermission:(PermissionConfirmation)confirmationHandler return; } - if (self.confirmationHandler) { - // Permission request is already running, return immediatly with error - errorHandler(GeolocatorErrorPermissionRequestInProgress, - @"A request for location permissions is already running, please wait for it to complete before doing another request."); - return; - } - self.confirmationHandler = confirmationHandler; self.errorHandler = errorHandler; CLLocationManager *locationManager = [self getLocationManager];