Fix gatt write fail issue 46/313746/1
authorWootak Jung <wootak.jung@samsung.com>
Thu, 25 Apr 2024 02:53:23 +0000 (11:53 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 1 Jul 2024 10:13:43 +0000 (19:13 +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 0fd810281cb208d9ba93e24fbcb662ba1e92dcd2..8b5e510b5ed1b92f03f03c5d384fc33640280856 100644 (file)
@@ -2713,6 +2713,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;