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

Commit 81da245b authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Fix ScannerMap leak" am: 4f01da1b am: 9643f1ef

am: 0c7a7446

Change-Id: Ie6a0401dd3e31f9f8b68cb1715da945d1f00a8cc
parents 6533174c 0c7a7446
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1578,7 +1578,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) {
@@ -1587,6 +1586,7 @@ public class GattService extends ProfileService {
            return;
        }

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