shared/gatt-client: Don't remove active services
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 17 Jul 2020 19:07:01 +0000 (12:07 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit6bbb81989843d510e10563b27375e1ecf5788696
tree4a7d63c5cd78b8d402278e731b268818ab5412b2
parentad90159a6602ec335c35d919eabca5d808cc4c94
shared/gatt-client: Don't remove active services

If discovery was aborted (i.e due to a disconnect) check if pending
services were active so only staled services which were not completed
fetched are removed.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/gatt-client.c