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

Commit 1f23da05 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add lock in sendBluetoothServiceUpCallback" am: 26a735bb am:...

Merge "Add lock in sendBluetoothServiceUpCallback" am: 26a735bb am: 3e53364b am: 52d864fd am: 472faf14

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2508575



Change-Id: I5541d4d45c9b1bfaf543f05be54b8748647bf854
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 28cbd5e6 472faf14
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1918,6 +1918,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub {
     */
    private void sendBluetoothServiceUpCallback() {
        synchronized (mCallbacks) {
            mBluetoothLock.readLock().lock();
            try {
                int n = mCallbacks.beginBroadcast();
                Log.d(TAG, "Broadcasting onBluetoothServiceUp() to " + n + " receivers.");
@@ -1930,6 +1931,7 @@ public class BluetoothManagerService extends IBluetoothManager.Stub {
                }
            } finally {
                mCallbacks.finishBroadcast();
                mBluetoothLock.readLock().unlock();
            }
        }
    }