From: Wootak Jung Date: Thu, 25 Apr 2024 02:53:23 +0000 (+0900) Subject: Fix gatt write fail issue X-Git-Tag: accepted/tizen/7.0/unified/20240503.164335^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1ff54fd76f3b7b1a645ff5848a4c8ab2b8e0495;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 c2292f3..11473ea 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -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;