bap: Fix not always calling bap_io_close on disconnect
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 31 Aug 2023 21:57:14 +0000 (14:57 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:04 +0000 (19:04 +0530)
commit272f389fbe6b93d99022e653ef9b6b2c2bbcfa33
tree0aa3d9a5c618372c039f9b52281bc3a27df983c0
parent68b52738383c2093e6d8bcf98e8ce54a54802d28
bap: Fix not always calling bap_io_close on disconnect

bap_io_disconnected was getting registered for all links while
connecting which prevented bap_io_close to be called when ISO socket is
disconnected thus the cig_active flag will remain set preventing the IO
to be recreated.
profiles/audio/bap.c