OSDN Git Service

Check A2DP source is not already shut{ting} down
authorSanket Agarwal <sanketa@google.com>
Wed, 2 Nov 2016 18:56:44 +0000 (11:56 -0700)
committerSanket Agarwal <sanketa@google.com>
Wed, 2 Nov 2016 19:23:02 +0000 (12:23 -0700)
commitf436d2f131cea47a20c9f5864c09d329af8872b0
tree1eebebb6965ac8acce3c2961776f022a7ea94ce3
parentfeee26c3dae12b53773b31f57cf2533a3d993979
Check A2DP source is not already shut{ting} down

In case A2DP is not enabled we are still executing the shut down path
which is leading to a race condition and posting to a thread queue which
is never created.

Bug: b/32610895
Change-Id: Id0cf95f4c7b5be26be28db5e837fbca3a0a87072
btif/src/btif_a2dp_source.cc