Don't call the write request callback in descriptor 69/231269/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 21 Apr 2020 00:47:40 +0000 (09:47 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 21 Apr 2020 00:47:40 +0000 (09:47 +0900)
The write method for descriptor is not the fd based.
So bt-service sends the event for write request.

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

index 8ac60c1..bb20e53 100644 (file)
@@ -4013,7 +4013,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 ");
        }