Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e1f8317 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5987274 from b0a554c5 to rvc-release

Change-Id: I5d29cb6b2560215731a7e1a04e3362de7a1e649a
parents c594e23b b0a554c5
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -340,25 +340,25 @@ public class GattService extends ProfileService {
                Log.d(TAG, "Binder is dead - unregistering scanner (" + mScannerId + ")!");
            }

            if (isScanClient(mScannerId)) {
                ScanClient client = new ScanClient(mScannerId);
            ScanClient client = getScanClient(mScannerId);
            if (client != null) {
                client.appDied = true;
                stopScan(client.scannerId);
            }
        }

        private boolean isScanClient(int clientIf) {
        private ScanClient getScanClient(int clientIf) {
            for (ScanClient client : mScanManager.getRegularScanQueue()) {
                if (client.scannerId == clientIf) {
                    return true;
                    return client;
                }
            }
            for (ScanClient client : mScanManager.getBatchScanQueue()) {
                if (client.scannerId == clientIf) {
                    return true;
                    return client;
                }
            }
            return false;
            return null;
        }
    }