Loading system/bta/dm/bta_dm_act.cc +12 −6 Original line number Diff line number Diff line Loading @@ -4561,13 +4561,19 @@ static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC* p_data) { } } switch (bta_dm_search_get_state()) { case BTA_DM_SEARCH_IDLE: case BTA_DM_SEARCH_ACTIVE: break; case BTA_DM_SEARCH_CANCELLING: case BTA_DM_DISCOVER_ACTIVE: /* in case of disconnect before search is completed */ if ((bta_dm_search_get_state() != BTA_DM_SEARCH_IDLE) && (bta_dm_search_get_state() != BTA_DM_SEARCH_ACTIVE) && p_data->close.remote_bda == bta_dm_search_cb.peer_bdaddr) { if (p_data->close.remote_bda == bta_dm_search_cb.peer_bdaddr) { bta_dm_gatt_disc_complete((uint16_t)GATT_INVALID_CONN_ID, (tGATT_STATUS)GATT_ERROR); } } break; default: Loading Loading
system/bta/dm/bta_dm_act.cc +12 −6 Original line number Diff line number Diff line Loading @@ -4561,13 +4561,19 @@ static void bta_dm_gattc_callback(tBTA_GATTC_EVT event, tBTA_GATTC* p_data) { } } switch (bta_dm_search_get_state()) { case BTA_DM_SEARCH_IDLE: case BTA_DM_SEARCH_ACTIVE: break; case BTA_DM_SEARCH_CANCELLING: case BTA_DM_DISCOVER_ACTIVE: /* in case of disconnect before search is completed */ if ((bta_dm_search_get_state() != BTA_DM_SEARCH_IDLE) && (bta_dm_search_get_state() != BTA_DM_SEARCH_ACTIVE) && p_data->close.remote_bda == bta_dm_search_cb.peer_bdaddr) { if (p_data->close.remote_bda == bta_dm_search_cb.peer_bdaddr) { bta_dm_gatt_disc_complete((uint16_t)GATT_INVALID_CONN_ID, (tGATT_STATUS)GATT_ERROR); } } break; default: Loading