Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69659d6d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Always check for the existance of an advertiser." am: 658b099c

parents bd1bbc71 658b099c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -801,6 +801,11 @@ struct LeAdvertisingManager::impl : public bluetooth::hci::LeAddressManagerCallb
    std::vector<EnabledSet> enabled_sets = {curr_set};
    Enable enable_value = enable ? Enable::ENABLED : Enable::DISABLED;

    if (!advertising_sets_.count(advertiser_id)) {
      LOG_WARN("No advertising set with key: %d", advertiser_id);
      return;
    }

    switch (advertising_api_type_) {
      case (AdvertisingApiType::LEGACY): {
        le_advertising_interface_->EnqueueCommand(