X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=bta%2Fgatt%2Fbta_gattc_act.c;h=3390b947558ec90b22602710e70d9075dbf7a2cc;hb=f87953f1be45c8f3e6f28610e1ac4dd29be007f1;hp=01b06b83853f5321c7c10753223c4a7234243166;hpb=970d9d18ec4fb8f154619db2841a881d7dcce053;p=android-x86%2Fsystem-bt.git diff --git a/bta/gatt/bta_gattc_act.c b/bta/gatt/bta_gattc_act.c index 01b06b838..3390b9475 100644 --- a/bta/gatt/bta_gattc_act.c +++ b/bta/gatt/bta_gattc_act.c @@ -715,6 +715,7 @@ void bta_gattc_conn(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data) { p_clcb->p_srcb->state = BTA_GATTC_SERV_LOAD; if (bta_gattc_cache_load(p_clcb)) { + p_clcb->p_srcb->state = BTA_GATTC_SERV_IDLE; bta_gattc_reset_discover_st(p_clcb->p_srcb, BTA_GATT_OK); } else { p_clcb->p_srcb->state = BTA_GATTC_SERV_DISC;