From 555ab13309394c084c6242d2f4ae18696ab11efc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 21 Mar 2016 15:42:31 +0200 Subject: [PATCH] shared/gatt-client: Make it possible to clone non-ready clients This is necessary in order to be possible to send commands while the discovery is in progress. --- src/shared/gatt-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 1dd6b22e3..8fa66ae01 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -1722,7 +1722,7 @@ struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client) { struct bt_gatt_client *clone; - if (!client || !client->ready) + if (!client) return NULL; clone = gatt_client_new(client->db, client->att); -- 2.47.3