a2dp: Always invalidate the cache if its configuration fails
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Mar 2022 22:14:34 +0000 (15:14 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit16c814044cfb4e395817ae8ba2cc9daae0bf8fdd
tree7b63daf48817c634a4bff3bde620319aecbd7b3f
parent056fe6345745e5fbd67b9dde4ffe1548ddaaa881
a2dp: Always invalidate the cache if its configuration fails

When a configuration had been restored from last_used cache but it
fails invalidate it so another sep can be used.

Fixes: https://github.com/bluez/bluez/issues/313
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/a2dp.c