From: Wootak Jung Date: Thu, 25 Apr 2024 02:53:23 +0000 (+0900) Subject: Fix gatt write fail issue X-Git-Tag: accepted/tizen/unified/20240703.100012~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af0404d1428c029400e059e3ce54ba441627cdf1;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix gatt write fail issue write_cb should be unset when client is disconnected Change-Id: I4c6d6239105acb8b627116e13e9599124c2661d5 Signed-off-by: Wootak Jung --- 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;