commit | 197ee6856b43d8eea137a7f37798ee2a012ce518 | [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 | 68b5da45758c5e607c16a6aa19ee5042231390e7 | |
parent | ac72840a3d7409adbb3ee4904ab1ed5de2d66586 [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