Fix crash during Bluetooth on/off stress test
Bug: 18106938
Change-Id: Icdeb736d89d5926264f2043455ccbc3760fd5d29
(cherry picked from commit 178d3b54cd)
This commit is contained in:
committed by
Jeff Deng
parent
db21261339
commit
df11d588bb
@@ -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