summaryrefslogtreecommitdiffstats
path: root/stack/gatt/gatt_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/gatt/gatt_main.c')
-rw-r--r--stack/gatt/gatt_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/gatt/gatt_main.c b/stack/gatt/gatt_main.c
index 168859c72..df1f939b7 100644
--- a/stack/gatt/gatt_main.c
+++ b/stack/gatt/gatt_main.c
@@ -227,9 +227,9 @@ BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb)
}
else
{
- gatt_set_ch_state(p_tcb, GATT_CH_CLOSING);
ret = L2CA_CancelBleConnectReq (p_tcb->peer_bda);
}
+ gatt_set_ch_state(p_tcb, GATT_CH_CLOSING);
}
else
{