diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index b8f70c8..58ab0b8 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
{
/* Skip if service already active */
if (!gatt_db_service_get_active(attr)) {
- queue_push_tail(op->pending_svcs, attr);
+ /* Skip if there are no attributes */
+ if (end == start)
+ gatt_db_service_set_active(attr, true);
+ else
+ queue_push_tail(op->pending_svcs, attr);
/* Update discovery range */
if (!op->svc_first || op->svc_first > start)