We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa00d9b commit fdc44dfCopy full SHA for fdc44df
location/src/main/kotlin/io/customer/location/LocationServicesImpl.kt
@@ -42,8 +42,9 @@ internal class LocationServicesImpl(
42
}
43
44
override fun requestLocationUpdate() {
45
- // Cancel any previous in-flight request to avoid concurrent GPS calls
46
- currentLocationJob?.cancel()
+ // If a request is already in flight, ignore the new call
+ if (currentLocationJob?.isActive == true) return
47
+
48
currentLocationJob = scope.launch {
49
try {
50
orchestrator.requestLocationUpdate()
0 commit comments