diff --git a/Modules/location-module/source/ip_provider.cpp b/Modules/location-module/source/ip_provider.cpp index dcd5642b1..4a685d8db 100644 --- a/Modules/location-module/source/ip_provider.cpp +++ b/Modules/location-module/source/ip_provider.cpp @@ -256,6 +256,7 @@ int32_t threadMain(void* context) { } if (!location_host_needs_fallback()) { + nextAttemptMs = std::max(nextAttemptMs, getUptimeMs() + CHECK_INTERVAL_MS); continue; } @@ -265,6 +266,7 @@ int32_t threadMain(void* context) { report(provider, cache->latitude, cache->longitude); reportedCache = true; } + nextAttemptMs = std::max(nextAttemptMs, getUptimeMs() + CHECK_INTERVAL_MS); continue; }