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

Commit 658b099c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Always check for the existance of an advertiser."

parents 4f59bb54 1d8a04ea
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(