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

Commit 8ccdbbde authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix auto disconnect right after connecting

Bug: 27207638
Change-Id: Ia36cd898c21058b9a3ed56a0d300c3ea8384a5cf
parent 7592a6f0
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1285,11 +1285,6 @@ void GATT_Deregister (tGATT_IF gatt_if)
            if (gatt_get_ch_state(p_tcb) != GATT_CH_CLOSE)
            {
                gatt_update_app_use_link_flag(gatt_if, p_tcb,  FALSE, FALSE);
                if (!gatt_num_apps_hold_link(p_tcb))
                {
                    /* this will disconnect the link or cancel the pending connect request at lower layer*/
                    gatt_disconnect(p_tcb);
                }
            }

            for (j = 0, p_clcb= &gatt_cb.clcb[j]; j < GATT_CL_MAX_LCB; j++, p_clcb++)
@@ -1506,10 +1501,6 @@ tGATT_STATUS GATT_Disconnect (UINT16 conn_id)
    if (p_tcb)
    {
        gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
        if (!gatt_num_apps_hold_link(p_tcb))
        {
            gatt_disconnect(p_tcb);
        }
        ret = GATT_SUCCESS;
    }
    return ret;