Internal change

PiperOrigin-RevId: 663333107
This commit is contained in:
hai007
2024-08-15 09:40:28 -07:00
committed by Copybara-Service
parent 25eec0ff0f
commit f0115df88b
23 changed files with 280 additions and 624 deletions
@@ -1219,7 +1219,7 @@ bool BleV2Medium::GetRemotePeripheral(const std::string& mac_address,
BleV2Peripheral* peripheral = nullptr;
{
absl::MutexLock lock(&mutex_);
BleV2Peripheral* peripheral = GetOrCreatePeripheral(mac_address);
peripheral = GetOrCreatePeripheral(mac_address);
}
if (peripheral != nullptr && peripheral->Ok()) {
@@ -1234,7 +1234,7 @@ bool BleV2Medium::GetRemotePeripheral(api::ble_v2::BlePeripheral::UniqueId id,
BleV2Peripheral* peripheral = nullptr;
{
absl::MutexLock lock(&mutex_);
BleV2Peripheral* peripheral = GetPeripheral(id);
peripheral = GetPeripheral(id);
}
if (peripheral == nullptr) {