Merge "Fix unregisterScanner call in BluetoothLeScanner."

This commit is contained in:
TreeHugger Robot
2018-07-27 00:35:29 +00:00
committed by Android (Google) Code Review

View File

@@ -441,8 +441,8 @@ public final class BluetoothLeScanner {
if (status == BluetoothGatt.GATT_SUCCESS) {
try {
if (mScannerId == -1) {
// Registration succeeds after timeout, unregister client.
mBluetoothGatt.unregisterClient(scannerId);
// Registration succeeds after timeout, unregister scanner.
mBluetoothGatt.unregisterScanner(scannerId);
} else {
mScannerId = scannerId;
mBluetoothGatt.startScan(mScannerId, mSettings, mFilters,