Diff between 6ca0afc43637441afb3c1a672ff02a4e95c79cd9 and 5fa084b0a81cdb684bb8e8c5ee5bf2fc356c0182
Changed Files
| File | Additions | Deletions | Status |
| src/shared/gatt-client.c | +4 | -2 | modified |
Full Patch
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 409a3ee..f6cff50 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -1460,8 +1460,10 @@ static bool read_db_hash(struct discovery_op *op)
struct bt_gatt_client *client = op->client;
bt_uuid_t uuid;
- /* Check if hash was already read */
- if (op->hash)
+ /* Check if hash was already been read or there are more services to
+ * process.
+ */
+ if (op->hash || !queue_isempty(client->svc_chngd_queue))
return false;
bt_uuid16_create(&uuid, GATT_CHARAC_DB_HASH);