diff options
author | Kausik Sinnaswamy <kausik@broadcom.com> | 2012-07-06 21:10:52 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-25 01:10:14 -0700 |
commit | a6cfa0a9b59e7604c87d03ecdd23385146032b8d (patch) | |
tree | d6ebb44d0e788ba76d67bc2550aa8b6b1e96babd /btif | |
parent | f06e7cebf18e93cf320a285c2c67ef79b98b13e0 (diff) | |
download | external_bluetooth_bluedroid-a6cfa0a9b59e7604c87d03ecdd23385146032b8d.zip external_bluetooth_bluedroid-a6cfa0a9b59e7604c87d03ecdd23385146032b8d.tar.gz external_bluetooth_bluedroid-a6cfa0a9b59e7604c87d03ecdd23385146032b8d.tar.bz2 |
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
Diffstat (limited to 'btif')
-rw-r--r-- | btif/src/btif_av.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |