mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-15 08:45:04 +01:00
More hardening
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
ec7d2f58f6
commit
e6cef58837
@ -1016,6 +1016,8 @@ public class CallActivity extends AppCompatActivity {
|
||||
videoCapturer = null;
|
||||
}
|
||||
|
||||
rootEglBase.release();
|
||||
|
||||
hangupNetworkCalls();
|
||||
|
||||
}
|
||||
@ -1207,6 +1209,8 @@ public class CallActivity extends AppCompatActivity {
|
||||
MagicPeerConnectionWrapper magicPeerConnectionWrapper;
|
||||
if ((magicPeerConnectionWrapper = getPeerConnectionWrapperForSessionId(sessionId)) != null) {
|
||||
runOnUiThread(() -> removeMediaStream(sessionId));
|
||||
magicPeerConnectionWrapper.removeMediaStream();
|
||||
magicPeerConnectionWrapper.removePeerConnection();
|
||||
deleteMagicPeerConnection(magicPeerConnectionWrapper);
|
||||
}
|
||||
}
|
||||
|
@ -92,6 +92,10 @@ public class MagicPeerConnectionWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
public void removePeerConnection() {
|
||||
peerConnection.close();
|
||||
peerConnection = null;
|
||||
}
|
||||
public void removeMediaStream() {
|
||||
if (peerConnection != null && localMediaStream != null) {
|
||||
peerConnection.removeStream(localMediaStream);
|
||||
|
Loading…
Reference in New Issue
Block a user