commit | 37e1e995fdfd6aecd53f1fd1f8f0928021472db1 | [log] [tgz] |
---|---|---|
author | Kausik Sinnaswamy <kausik@broadcom.com> | Mon Sep 10 17:11:14 2012 +0530 |
committer | Matthew Xie <mattx@google.com> | Mon Sep 10 22:48:57 2012 -0700 |
tree | 4db916f61a23ec1fbd6a9c6275ca55341206d02f | |
parent | 8ca777c3299ebf8c5869d46ba80d3fa474814751 [diff] |
Terminate PBAP service cleanly during BT off PBAP service runs in a loop of 10 trials to create the RFCOMM listener thread; this loop is not getting interrupted during BT off, due to which we end up delaying PBAP stop by 3 seconds (10 * 300ms). The fix is to check for BT state after RFCOMM listener failure and break out of the loop if BT is being turned off. bug 7134544 Change-Id: I81d2a559857eef9138ebca662ea28f1d3e358bb8