adapter: Fix not removing client from discovery list
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 May 2020 22:07:37 +0000 (15:07 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit5aa5b949455d920e7137579eeedcdf42476fcfda
tree77316333a4130e67aac8e2aa6730c9d4149250ac
parent9d09b614e01085f1d8040eaa90c02d82dcd0e201
adapter: Fix not removing client from discovery list

If command MGMT_OP_START_DISCOVERY fails we reply with btd_error_busy
but we don't remove the client from the list which would prevent the
client to start it once again.

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