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

Commit 2e809c14 authored by Weichin Weng's avatar Weichin Weng Committed by android-build-merger
Browse files

Merge "Remove direct connection after notifying the connection up" am:...

Merge "Remove direct connection after notifying the connection up" am: 3399d43c am: e55e708e am: 8db3eee6 am: 640a3d12
am: 8e0f15a4

Change-Id: I6d336baf348662c6d7542a559775a3ec8b0d4bc0
parents 82f1b0a3 8e0f15a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -823,6 +823,9 @@ static void gatt_send_conn_cback(tGATT_TCB* p_tcb) {
    }
  }

  /* Remove the direct connection */
  connection_manager::on_connection_complete(p_tcb->peer_bda);

  if (!p_tcb->app_hold_link.empty() && p_tcb->att_lcid == L2CAP_ATT_CID) {
    /* disable idle timeout if one or more clients are holding the link disable
     * the idle timer */