Diff between 7ad750ebc50afa903a2c15b132053135cf04eecd and 9b4912ecf815b0483d539073b1ec2eaddc5a7613

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 8fd8a45..4386692 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -631,9 +631,11 @@ static bool read_ext_prop_desc(struct discovery_op *op)
 		return false;
 
 	handle = gatt_db_attribute_get_handle(attr);
-	bt_gatt_client_read_value(client, handle, ext_prop_read_cb,
+
+	if (!bt_gatt_client_read_value(client, handle, ext_prop_read_cb,
 							discovery_op_ref(op),
-							discovery_op_unref);
+							discovery_op_unref))
+		return false;
 
 	return true;
 }