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

Commit 028cc5ae authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "gatt: Fix infinite loop on ACL disconnect"

parents 79591e3c 1ae96f4e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1631,7 +1631,10 @@ void gatt_cleanup_upon_disc(const RawAddress& bda, tGATT_DISCONN_REASON reason,

  for (auto clcb_it = gatt_cb.clcb_queue.begin();
       clcb_it != gatt_cb.clcb_queue.end();) {
    if (clcb_it->p_tcb != p_tcb) continue;
    if (clcb_it->p_tcb != p_tcb) {
      ++clcb_it;
      continue;
    }

    gatt_stop_rsp_timer(&(*clcb_it));
    VLOG(1) << "found p_clcb conn_id=" << +clcb_it->conn_id;