diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index d0fc054..bfb9427 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
if (!gatt_db_attribute_get_service_handles(attr, &start, &end))
goto failed;
+ if (start == end)
+ goto next;
+
if (bt_gatt_discover_included_services(client->att, start, end,
discover_incl_cb,
discovery_op_ref(op),
if (!gatt_db_attribute_get_service_handles(attr, &start, &end))
goto failed;
+ if (start == end)
+ goto next;
+
/* Move on to the next service */
op->cur_svc = attr;
if (bt_gatt_discover_characteristics(client->att, start, end,
if (!gatt_db_attribute_get_service_handles(attr, &start, &end))
goto failed;
+ if (start == end)
+ goto next;
+
/* Move on to the next service */
op->cur_svc = attr;
if (bt_gatt_discover_characteristics(client->att, start, end,