commit | 7d06d7bd7931ddec00b63aa080bd30a3e4b4c15d | [log] [tgz] |
---|---|---|
author | Vinay Kalia <vinaykalia@google.com> | Sat Jul 29 22:17:03 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Sat Jul 29 22:17:03 2017 +0000 |
tree | e04e8ac14f522f9ea45d2e9e8653720b7bb7dd6f | |
parent | 567fe364d43579f5d807b18facdcc4e2d2e896bf [diff] | |
parent | 604a4b71711adb5a04aab6c10b51f2415d0317f7 [diff] |
Merge "Fix BLE scan leaks" into oc-dr1-dev am: 604a4b7171 Change-Id: I9e3f7a0d3b871e5c5e2a740ec69eacaa2cbc41e2
diff --git a/core/java/android/bluetooth/le/BluetoothLeScanner.java b/core/java/android/bluetooth/le/BluetoothLeScanner.java index 1eac395..e3bc78e 100644 --- a/core/java/android/bluetooth/le/BluetoothLeScanner.java +++ b/core/java/android/bluetooth/le/BluetoothLeScanner.java
@@ -205,7 +205,8 @@ } synchronized (mLeScanClients) { if (callback != null && mLeScanClients.containsKey(callback)) { - postCallbackError(callback, ScanCallback.SCAN_FAILED_ALREADY_STARTED); + return postCallbackErrorOrReturn(callback, + ScanCallback.SCAN_FAILED_ALREADY_STARTED); } IBluetoothGatt gatt; try {