commit | d8c7b26db43a1f880c2e917d4735425275f87551 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Tue Jul 21 18:09:19 2015 -0700 |
committer | Andre Eisenbach <eisenbach@google.com> | Wed Jul 22 16:42:54 2015 +0000 |
tree | e0290a4f4bdea236fa4522c0a297a65e60ffb1d3 | |
parent | 3a2c94bc66ce3451ae8c22323655f57a67d0fd86 [diff] |
Fix a crash for a race condition during Bluetooth shutdown This race condition is triggered when A2DP audio is streaming on shutdown: "btif_a2dp_on_stopped() -> btif_media_task_aa_tx_flush_req()" is called to stop the particular audio stream, and this happens right after the "cleanup() -> btif_a2dp_stop_media_task()" processing during the shutdown of the Bluetooth stack. Bug: 22602117 Change-Id: I5de6a8f15b6a2771dde2e299a5b60554063696a2