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

Commit 31b729c9 authored by Chienyuan's avatar Chienyuan Committed by Chienyuan Huang
Browse files

AckPause when Create Connection Cancel fail

Bug: 239773749
Test: gd/cert/run
Tag: #refactor
Change-Id: I0ed0187d872c0aca96b58ebb6b152e3a93e1e616
parent b02658d2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -972,6 +972,11 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
      auto status = complete_view.GetStatus();
      std::string error_code = ErrorCodeText(status);
      LOG_WARN("Received on_create_connection_cancel_complete with error code %s", error_code.c_str());
      if (pause_connection) {
        LOG_WARN("AckPause");
        le_address_manager_->AckPause(this);
        return;
      }
    }
    if (connectability_state_ != ConnectabilityState::DISARMING) {
      LOG_ERROR(