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.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
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);