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

Commit 07c35723 authored by Hall Liu's avatar Hall Liu Committed by Automerger Merge Worker
Browse files

Merge "Clean up RTT streams properly after termination" into rvc-dev am: 2d7cf2be

Change-Id: Ieb639e05cb6b286a90b0c812f377021602a962aa
parents f0206dac 2d7cf2be
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
@@ -1765,7 +1765,8 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
            mConnectionProperties = connectionProperties;
            boolean didRttChange =
                    (changedProperties & Connection.PROPERTY_IS_RTT) == Connection.PROPERTY_IS_RTT;
            if (didRttChange && (mConnectionProperties & Connection.PROPERTY_IS_RTT) ==
            if (didRttChange) {
                if ((mConnectionProperties & Connection.PROPERTY_IS_RTT) ==
                        Connection.PROPERTY_IS_RTT) {
                    createRttStreams();
                    // Call startRtt to pass the RTT pipes down to the connection service.
@@ -1776,6 +1777,11 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
                    if (isEmergencyCall()) {
                        mCallsManager.mute(false);
                    }
                } else {
                    closeRttStreams();
                    mInCallToConnectionServiceStreams = null;
                    mConnectionServiceToInCallStreams = null;
                }
            }
            mWasHighDefAudio = (connectionProperties & Connection.PROPERTY_HIGH_DEF_AUDIO) ==
                    Connection.PROPERTY_HIGH_DEF_AUDIO;