summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-10 14:10:53 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-12-13 14:46:48 -0800
commit860af44b9dde309a96474293d2e4bbf9068b8bbc (patch)
tree96a6fb3b245c51e3e296b769fc25277b0bab893d
parent58d1f5ae0f9753941c6fcc754560023cd0dbec64 (diff)
downloadbluez-860af44b9dde309a96474293d2e4bbf9068b8bbc.tar.gz
shared/gatt-client: Skip included service if it cannot be resolved
Instead of failing if the included service cannot be resolved just skip it so doesn't fail and the discovery is stop due to a possible application error.
-rw-r--r--src/shared/gatt-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index be0d3b091..e24c9603c 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -562,8 +562,9 @@ static void discover_incl_cb(bool success, uint8_t att_ecode,
attr = gatt_db_get_attribute(client->db, start);
if (!attr) {
util_debug(client->debug_callback, client->debug_data,
- "Unable to find attribute at 0x%04x", start);
- goto failed;
+ "Unable to find attribute at 0x%04x: skipping",
+ start);
+ continue;
}
attr = gatt_db_insert_included(client->db, handle, attr);