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

Commit a69b6528 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents d88b39e9 bc6c6c62
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;