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

Commit feaeffbe authored by Chienyuan's avatar Chienyuan Committed by Jack He
Browse files

AckPause when Create Connection Cancel fail

Bug: 239773749
Test: gd/cert/run
Tag: #refactor
Change-Id: I0ed0187d872c0aca96b58ebb6b152e3a93e1e616
Merged-In: I0ed0187d872c0aca96b58ebb6b152e3a93e1e616
(cherry picked from commit 700b8a771b4a5e6b1208b4c4386e99646cbb9c4a)
parent 88f0414f
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(