avdtp: Fix always destroying session immediatelly
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 21 Jan 2019 11:29:09 +0000 (13:29 +0200)
committerhimanshu <h.himanshu@samsung.com>
Wed, 22 Jan 2020 09:07:09 +0000 (14:37 +0530)
commitf8737c0680dbac0bfee0725b3ef0832ede6b7990
tree616a860fe60b5e08c18f369071ac2331a85b2183
parent91f0a16c89bf5a3fe0880f3cc9941b03b4822e75
avdtp: Fix always destroying session immediatelly

In case the remote device sent a close/abort the session shall not be
free immediatelly as the remote may want to reconfigure the stream.

Change-Id: I7934f4a837c910ee80df64f24face6980dc476ad
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/avdtp.c