From a6cfa0a9b59e7604c87d03ecdd23385146032b8d Mon Sep 17 00:00:00 2001 From: Kausik Sinnaswamy Date: Fri, 6 Jul 2012 21:10:52 +0530 Subject: Handle RC_Close while AV_Closing to cleanup uinput While AV disconnection is in progress, we need to handle the RC_CLOSE event from the stack to trigger the uinput cleanup. Otherwise we would leaking uinput FDs. Change-Id: I9e37eef7b1c0fa0d56e809f1bf5686235f782cb5 --- btif/src/btif_av.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'btif/src/btif_av.c') diff --git a/btif/src/btif_av.c b/btif/src/btif_av.c index f7811a3..b35497a 100644 --- a/btif/src/btif_av.c +++ b/btif/src/btif_av.c @@ -452,6 +452,11 @@ static BOOLEAN btif_av_state_closing_handler(btif_sm_event_t event, void *p_data btif_sm_change_state(btif_av_cb.sm_handle, BTIF_AV_STATE_IDLE); break; + /* Handle the RC_CLOSE event for the cleanup */ + case BTA_AV_RC_CLOSE_EVT: + btif_rc_handler(event, (tBTA_AV*)p_data); + break; + default: BTIF_TRACE_WARNING2("%s : unhandled event:%s", __FUNCTION__, dump_av_sm_event_name(event)); -- cgit v1.1