From 93f8d6ed1ae16283eee4974f74e857b07eddef60 Mon Sep 17 00:00:00 2001 From: Petri Gynther Date: Thu, 1 Dec 2016 12:16:02 -0800 Subject: [PATCH] shared/gatt-client: Fix discover_secondary_cb() If included services discovery cannot be started, the services discovery operation has failed. --- src/shared/gatt-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 84145e706..dc98aaae3 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -1027,6 +1027,7 @@ next: util_debug(client->debug_callback, client->debug_data, "Failed to start included services discovery"); discovery_op_unref(op); + success = false; done: discovery_op_complete(op, success, att_ecode); -- 2.47.3