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

Commit 9643f1ef authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix ScannerMap leak"

am: 4f01da1b

Change-Id: Ied30efea9ca4ea8f8ecac7454ca0a277422f2f74
parents 5f2819ec 4f01da1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1577,7 +1577,6 @@ public class GattService extends ProfileService {
            enforceImpersonatationPermission();
        }

        mScannerMap.add(uuid, workSource, callback, null, this);
        AppScanStats app = mScannerMap.getAppScanStatsByUid(Binder.getCallingUid());
        if (app != null && app.isScanningTooFrequently()
                && checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED) != PERMISSION_GRANTED) {
@@ -1586,6 +1585,7 @@ public class GattService extends ProfileService {
            return;
        }

        mScannerMap.add(uuid, workSource, callback, null, this);
        mScanManager.registerScanner(uuid);
    }