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

Commit 5b291ee4 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Fix L2cap LE crash

Tag: #gd-refactor
Bug: 179066870
Test: CtsVerifier
Change-Id: I61faf8aa17323b55a818eab1820d0354c84f38e9
parent d9b02b1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -130,8 +130,8 @@ void LinkManager::OnLeConnectSuccess(hci::AddressWithType connecting_address_wit
void LinkManager::OnLeConnectFail(hci::AddressWithType address_with_type, hci::ErrorCode reason) {
  // Notify all pending links for this device
  auto pending_link = pending_links_.find(address_with_type);
  if (pending_link == pending_links_.end() && reason != hci::ErrorCode::UNKNOWN_CONNECTION) {
    // There is no pending link, exit; UNKNOWN_CONNECTION means we cancelled
  if (pending_link == pending_links_.end()) {
    // There is no pending link, exit
    LOG_INFO("Connection to %s failed without a pending link", address_with_type.ToString().c_str());
    return;
  }