From befa914c9f79733e3a71503d4707d0d97f239c6f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 1 Feb 2016 14:01:47 +0200 Subject: [PATCH] shared/gatt-client: Fix not resetting request id The request id shall be reset to 0 after bt_att_cancel has been called. --- 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 5c95a6212..8bcbabc56 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -1581,6 +1581,7 @@ static void complete_unregister_notify(void *data) */ if (notify_data->att_id) { bt_att_cancel(notify_data->client->att, notify_data->att_id); + notify_data->att_id = 0; goto done; } -- 2.47.3