Diff between 9025c3a7b50859bfa5e76217985cfe0adc11ce07 and a4d1a7d67e83999cf7f349670583d2f25431459d

Changed Files

File Additions Deletions Status
src/shared/gatt-client.c +3 -0 modified

Full Patch

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 7e7ebb7..20c195a 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -2982,6 +2982,9 @@ bool bt_gatt_client_unregister_notify(struct bt_gatt_client *client,
 	if (!notify_data)
 		return false;
 
+	/* Remove data if it has been queued */
+	queue_remove(notify_data->chrc->reg_notify_queue, notify_data);
+
 	complete_unregister_notify(notify_data);
 	return true;
 }