am e2502eb9: Merge "Fix crash during Bluetooth on/off stress test" into lmp-mr1-dev
* commit 'e2502eb9ad5eafc54ae06f06a72493748616dbd5': Fix crash during Bluetooth on/off stress test
This commit is contained in:
@@ -1445,7 +1445,7 @@ public final class BluetoothAdapter {
|
|||||||
if (VDBG) Log.d(TAG, "onBluetoothServiceDown: " + mService);
|
if (VDBG) Log.d(TAG, "onBluetoothServiceDown: " + mService);
|
||||||
synchronized (mManagerCallback) {
|
synchronized (mManagerCallback) {
|
||||||
mService = null;
|
mService = null;
|
||||||
mLeScanClients.clear();
|
if (mLeScanClients != null) mLeScanClients.clear();
|
||||||
if (sBluetoothLeAdvertiser != null) sBluetoothLeAdvertiser.cleanup();
|
if (sBluetoothLeAdvertiser != null) sBluetoothLeAdvertiser.cleanup();
|
||||||
if (sBluetoothLeScanner != null) sBluetoothLeScanner.cleanup();
|
if (sBluetoothLeScanner != null) sBluetoothLeScanner.cleanup();
|
||||||
for (IBluetoothManagerCallback cb : mProxyServiceStateCallbacks ){
|
for (IBluetoothManagerCallback cb : mProxyServiceStateCallbacks ){
|
||||||
|
|||||||
Reference in New Issue
Block a user