Diff between 113262215fd60827ea355cf11882547f87264d9c and 38be6726f5cfca549cc298b66108d23ee77f51a0
Changed Files
| File | Additions | Deletions | Status |
| src/shared/gatt-client.c | +5 | -0 | modified |
Full Patch
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index ec1041f..858209c 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -815,6 +815,11 @@ static void discover_descs_cb(bool success, uint8_t att_ecode,
&uuid, 0, NULL, NULL,
NULL);
if (!attr) {
+ attr = gatt_db_get_attribute(client->db, handle);
+ if (attr && !bt_uuid_cmp(&uuid,
+ gatt_db_attribute_get_type(attr)))
+ continue;
+
util_debug(client->debug_callback, client->debug_data,
"Failed to insert descriptor at 0x%04x",
handle);