mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
More cleanups
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8dbd381adb
commit
42b71b9710
@ -1009,6 +1009,12 @@ public class CallActivity extends AppCompatActivity {
|
|||||||
peerConnectionFactory = null;
|
peerConnectionFactory = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localMediaStream.removeTrack(localAudioTrack);
|
||||||
|
localMediaStream.removeTrack(localVideoTrack);
|
||||||
|
localMediaStream = null;
|
||||||
|
localAudioTrack = null;
|
||||||
|
localVideoTrack = null;
|
||||||
|
|
||||||
hangupNetworkCalls();
|
hangupNetworkCalls();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,7 @@ public class MagicPeerConnectionWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (peerConnection != null) {
|
if (peerConnection != null) {
|
||||||
|
peerConnection.removeStream(localMediaStream);
|
||||||
peerConnection.close();
|
peerConnection.close();
|
||||||
peerConnection = null;
|
peerConnection = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user