Enhance on advertising

PiperOrigin-RevId: 655044204
This commit is contained in:
Guogang Li
2024-07-22 23:57:16 -07:00
committed by Copybara-Service
parent e2aac58f2f
commit 52c80303e3
13 changed files with 723 additions and 85 deletions
@@ -170,7 +170,7 @@ bool BleV2Medium::StartAdvertising(const BleAdvertisementData& advertising_data,
bool BleV2Medium::StopAdvertising() {
absl::MutexLock lock(&mutex_);
NEARBY_LOGS(INFO) << __func__ << ": Stop advertising.";
bool result;
bool result = true;
if (is_gatt_publisher_started_) {
bool stop_gatt_result = StopGattAdvertising();
if (!stop_gatt_result) {