From a701c777afad45c95c86f4181e1c5147031acf3f Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Mon, 11 Dec 2017 16:23:21 -0800 Subject: [PATCH] AVRCP: Flush the command queue in AVRC_Close Test: toggle BR/EDR, manually inspect open files using lsof Change-Id: I7bdc3a3840e7cc31894a9050dd5b7c29f863bb30 --- stack/avrc/avrc_api.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/stack/avrc/avrc_api.cc b/stack/avrc/avrc_api.cc index f3126b382..f20952242 100644 --- a/stack/avrc/avrc_api.cc +++ b/stack/avrc/avrc_api.cc @@ -1014,6 +1014,7 @@ uint16_t AVRC_Open(uint8_t* p_handle, tAVRC_CONN_CB* p_ccb, *****************************************************************************/ uint16_t AVRC_Close(uint8_t handle) { AVRC_TRACE_DEBUG("%s handle:%d", __func__, handle); + avrc_flush_cmd_q(handle); return AVCT_RemoveConn(handle); } -- 2.11.0