diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index f4934f2..ac2692f 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
util_debug(client->debug_callback, client->debug_data,
"Primary service discovery failed."
" ATT ECODE: 0x%02x", att_ecode);
- goto done;
+ goto secondary;
}
if (!result || !bt_gatt_iter_init(&iter, result)) {
queue_push_tail(op->pending_svcs, attr);
}
+secondary:
/* Discover secondary services */
if (bt_gatt_discover_secondary_services(client->att, NULL,
op->start, op->end,