gatt: Fix not replying to Write request
Luiz Augusto von Dentz
maintainerPATCH 1/1 gatt: Fix not replying to Write request
From: Luiz Augusto von Dentz <[email protected]>
When using AcquireWrite the first write would not call gatt_db_attribute_write_result so no reply would be generated.
--- src/gatt-database.c | 2 ++ 1 file changed, 2 insertions(+)
src/gatt-database.c +2 -0
@@ -1892,6 +1892,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data) op->data.iov_len) < 0) goto retry; +gatt_db_attribute_write_result (op->attrib, op->id,0 ); +return ; retry:
Signature · 1 line
2.13.5
Hi,
Quoted 22 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
When using AcquireWrite the first write would not call
gatt_db_attribute_write_resultso no reply would be generated.--- src/gatt-database.c | 2 ++ 1 file changed, 2 insertions(+)src/gatt-database.c +2
-1@@ -1892,6 +1892,8 @@ static void acquire_write_reply(DBusMessage *message, void *user_data) op->data.iov_len) < 0) goto retry; +gatt_db_attribute_write_result (op->attrib, op->id,0 ); +return ; retry: --
Quoted 2 lines
2.13.5
Applied.
Signature · 1 line
Luiz Augusto von Dentz