mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-23 23:10:05 +00:00
!827 getLastLocation 更新数据异常
Merge pull request !827 from smilebear/master
This commit is contained in:
commit
280dafb56d
@ -306,7 +306,7 @@ void ReportManager::UpdateLastLocation(const std::unique_ptr<Location>& location
|
||||
int currentUserId = 0;
|
||||
if (CommonUtils::GetCurrentUserId(currentUserId)) {
|
||||
std::unique_lock<std::mutex> lock(lastLocationMutex_);
|
||||
lastLocationsMap_.insert(std::make_pair(currentUserId, std::make_shared<Location>(*location)));
|
||||
lastLocationsMap_[currentUserId] = std::make_shared<Location>(*location);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user