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

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

Merge "audio: Modify conditions to reduce unnecessary lock waiting behavior."...

Merge "audio: Modify conditions to reduce unnecessary lock waiting behavior." into main am: a69b6528

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3266517



Change-Id: Ifce8f1ac9f16c1bd7d223c4cb55a79829bba5d37
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 10d388e9 a69b6528
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -332,8 +332,8 @@ public class AudioDeviceBroker {
            Log.v(TAG, "setCommunicationDevice, device: " + device + ", uid: " + uid);
        }

        synchronized (mDeviceStateLock) {
        if (device == null) {
            synchronized (mDeviceStateLock) {
                CommunicationRouteClient client = getCommunicationRouteClientForUid(uid);
                if (client == null) {
                    return false;