From af0404d1428c029400e059e3ce54ba441627cdf1 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 25 Apr 2024 11:53:23 +0900 Subject: [PATCH] Fix gatt write fail issue write_cb should be unset when client is disconnected Change-Id: I4c6d6239105acb8b627116e13e9599124c2661d5 Signed-off-by: Wootak Jung --- src/bluetooth-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 0fd8102..8b5e510 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -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; -- 2.7.4