Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77885b9c authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

AVRCP: Flush the command queue in AVRC_Close

am: 9ab8623b

Change-Id: I1fdbe972e912ca1a06e6b83e336080733a0b5cf1
parents b5de8f6e 9ab8623b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1014,6 +1014,7 @@ uint16_t AVRC_Open(uint8_t* p_handle, tAVRC_CONN_CB* p_ccb,
 *****************************************************************************/
 *****************************************************************************/
uint16_t AVRC_Close(uint8_t handle) {
uint16_t AVRC_Close(uint8_t handle) {
  AVRC_TRACE_DEBUG("%s handle:%d", __func__, handle);
  AVRC_TRACE_DEBUG("%s handle:%d", __func__, handle);
  avrc_flush_cmd_q(handle);
  return AVCT_RemoveConn(handle);
  return AVCT_RemoveConn(handle);
}
}