update services/location_locator/locator/source/report_manager.cpp.

Signed-off-by: smilebear <245252081@qq.com>
This commit is contained in:
smilebear 2024-11-19 10:50:46 +00:00 committed by Gitee
parent 3ffa3bdd36
commit a5217d15a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -328,7 +328,6 @@ void ReportManager::UpdateLastLocation(const std::unique_ptr<Location>& location
std::unique_ptr<Location> ReportManager::GetLastLocation()
{
auto locatorBackgroundProxy = LocatorBackgroundProxy::GetInstance();
// locatorBackgroundProxy->OnSaStateChange(isEnabled);
int currentUserId = locatorBackgroundProxy->getCurrentUserId();
LBSLOGI(LOCATOR_STANDARD, "GetCacheLocation GetLastLocation currentUserId = %{public}d ", currentUserId);
std::unique_lock<std::mutex> lock(lastLocationMutex_);