From e074cc1fa5e0a5ddd799aefd13aa16179821349a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 17 Feb 2016 12:52:32 +0200 Subject: [PATCH] shared/gatt-client: Fix regression The patch 9b40ecc8389fb064c6b5a35324c8031731e59131 introduced a regression where only the characteristics of the first service would be discovered. --- src/shared/gatt-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 4c563c2be..292e6ecc7 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -696,7 +696,7 @@ next: /* Done with the current service */ gatt_db_service_set_active(op->cur_svc, true); - attr = queue_pop_head(op->pending_svcs); + attr = queue_pop_head(op->svcs); if (!attr) goto done; @@ -803,7 +803,7 @@ next: /* Done with the current service */ gatt_db_service_set_active(op->cur_svc, true); - attr = queue_pop_head(op->pending_svcs); + attr = queue_pop_head(op->svcs); if (!attr) goto done; -- 2.47.3