Fix gatt write fail issue 89/310289/1 accepted/tizen/7.0/unified/20240503.164335
authorWootak Jung <wootak.jung@samsung.com>
Thu, 25 Apr 2024 02:53:23 +0000 (11:53 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 25 Apr 2024 02:53:23 +0000 (11:53 +0900)
write_cb should be unset when client is disconnected

Change-Id: I4c6d6239105acb8b627116e13e9599124c2661d5
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/bluetooth-common.c

index c2292f369426e79750575f0eb1aee0f424803d7a..11473ea00ed5b037915ce5ff9ff3f9796e323511 100644 (file)
@@ -2686,6 +2686,8 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                        client_s->connection_change_user_data = NULL;
                }
 
+               _bt_unset_cb(BT_EVENT_GATT_CLIENT_WRITE_CHARACTERISTIC);
+
                g_free(device_addr);
                device_addr = NULL;
                break;