shared/gatt-client: Fix not sending confirmations
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 28 Aug 2023 17:53:55 +0000 (10:53 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
commit298393c55d1061a2509247e52da41b152f1c06e7
tree2826148c2cf9356f8a182dc3aabb0e35ae6d2e88
parent6a9cdd446d3e835868fbf50c07ffcafd4f42d214
shared/gatt-client: Fix not sending confirmations

Commit fde32ff9c9c0 ("shared/gatt-client: Allow registering with NULL
callback") added an early return to the notify_cb function when the
current client's notify_list is empty which prevents sending
confirmations to indications.

Reported-by: Javier de San Pedro <dev.git@javispedro.com>
src/shared/gatt-client.c