From 490bca413469f3ad89339559cb639501eb68c2e5 Mon Sep 17 00:00:00 2001 From: sidecai <1142566470@qq.com> Date: Tue, 9 Sep 2025 14:41:16 +0800 Subject: [PATCH] register wifi callback delay Signed-off-by: sidecai <1142566470@qq.com> --- .../locator/source/locator_required_data_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/location_locator/locator/source/locator_required_data_manager.cpp b/services/location_locator/locator/source/locator_required_data_manager.cpp index 2f2fe262..08be5aac 100644 --- a/services/location_locator/locator/source/locator_required_data_manager.cpp +++ b/services/location_locator/locator/source/locator_required_data_manager.cpp @@ -44,6 +44,7 @@ const int64_t DEFAULT_NOT_RETRY_TIME_10_SECONDS = 10 * MILLI_PER_SEC * MICRO_PER const int64_t WLAN_SCAN_RESULTS_VALIDITY_PERIOD = 2 * MILLI_PER_SEC * MICRO_PER_MILLI; const int TIMEOUT_WATCHDOG = 60; // s const int32_t MAX_CALLBACKS_MAP_NUM = 1000; +const int32_t REGISTER_WIFI_CALLBACK_DELAY = 100; const std::string TYPE_BLE = "ble"; LocatorRequiredDataManager::LocatorRequiredDataManager() @@ -57,7 +58,7 @@ LocatorRequiredDataManager::LocatorRequiredDataManager() std::make_shared(AppExecFwk::EventRunner::Create(true, AppExecFwk::ThreadMode::FFRT)); #ifndef TDD_CASES_ENABLED if (wifiSdkHandler_ != nullptr) { - wifiSdkHandler_->SendEvent(EVENT_REGISTER_WIFI_CALLBACK, 0, 0); + wifiSdkHandler_->SendEvent(EVENT_REGISTER_WIFI_CALLBACK, 0, REGISTER_WIFI_CALLBACK_DELAY); } #endif } -- Gitee