Don't call the write request callback in descriptor 30/238330/1 accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200713.021945 accepted/tizen/5.5/unified/wearable/hotfix/20201027.121800 submit/tizen_5.5/20200713.015132 submit/tizen_5.5_wearable_hotfix/20201026.184302
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 21 Apr 2020 00:47:40 +0000 (09:47 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 13 Jul 2020 01:25:27 +0000 (10:25 +0900)
The write method for descriptor is not the fd based.
So bt-service sends the event for write request.

Change-Id: I240d9937638a09cc8a50053b0838d1e6fd2d3cb7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-gatt.c

index 7099addec5e39be8db2f560a0b474f5fe31ff307..860112c3ae72e6d2be24ef9ee13c244dc7097b94 100644 (file)
@@ -3947,7 +3947,6 @@ int bt_gatt_client_write_value(bt_gatt_h gatt_handle,
                        desc->write_cb = callback;
                        desc->write_user_data = user_data;
                }
-               desc->write_cb(ret, gatt_handle, user_data);
        } else {
                BT_ERR("Invalid handle type for write ");
        }