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

Commit f369d1dd authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioService: stop SCO audio when communication route client dies" into sc-qpr1-dev

parents 45b16df6 c89895fd
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1719,11 +1719,10 @@ import java.util.concurrent.atomic.AtomicBoolean;
        if (client == null) {
            return;
        }
        Log.w(TAG, "Speaker client died");
        if (removeCommunicationRouteClient(client.getBinder(), false)
                != null) {
            onUpdateCommunicationRoute("onCommunicationRouteClientDied");
        }
        Log.w(TAG, "Communication client died");
        setCommunicationRouteForClient(
                client.getBinder(), client.getPid(), null, BtHelper.SCO_MODE_UNDEFINED,
                "onCommunicationRouteClientDied");
    }

    /**