Skip to content

Commit e53cdc3

Browse files
committed
Update LocationManagerAsync.swift
1 parent 768af4c commit e53cdc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/d3-async-location/LocationManagerAsync.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class LocationManagerAsync: ILocationManagerAsync{
6363

6464
/// Stop streaming
6565
public func stop(){
66-
delegate.stream = nil
66+
delegate.stream = nil
6767
manager.stopUpdatingLocation()
6868

6969
#if DEBUG
@@ -96,9 +96,9 @@ final class LocationManagerAsync: ILocationManagerAsync{
9696
){
9797
manager.delegate = delegate
9898
manager.desiredAccuracy = accuracy ?? kCLLocationAccuracyBest
99-
manager.allowsBackgroundLocationUpdates = backgroundUpdates
10099
manager.activityType = activityType ?? .other
101100
manager.distanceFilter = distanceFilter ?? kCLDistanceFilterNone
101+
manager.allowsBackgroundLocationUpdates = backgroundUpdates
102102
}
103103
}
104104

0 commit comments

Comments
 (0)