Fix schedule until online when the recipient is already online

This commit is contained in:
Ilya Laktyushin
2019-11-28 14:38:37 +04:00
parent e78c7460ea
commit d7006fdf3d
5 changed files with 23 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ public final class LocationManager: NSObject, CLLocationManagerDelegate {
public func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
if let (pendingCompletion, _) = self.pendingCompletion {
pendingCompletion(status)
self.pendingCompletion = nil
}
}
}