Thread (5 messages) 5 messages, 1 author, 2016-02-07
STALE3888d

[PATCH BlueZ 1/4] shared/gatt-client: Fix not resetting request id

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2016-02-01 14:13:19
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

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 06ac763..5fd0208 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.5.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help