mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 06:55:42 +03:00
More cleanups
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8dbd381adb
commit
42b71b9710
2 changed files with 7 additions and 0 deletions
|
@ -1009,6 +1009,12 @@ public class CallActivity extends AppCompatActivity {
|
|||
peerConnectionFactory = null;
|
||||
}
|
||||
|
||||
localMediaStream.removeTrack(localAudioTrack);
|
||||
localMediaStream.removeTrack(localVideoTrack);
|
||||
localMediaStream = null;
|
||||
localAudioTrack = null;
|
||||
localVideoTrack = null;
|
||||
|
||||
hangupNetworkCalls();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,6 +99,7 @@ public class MagicPeerConnectionWrapper {
|
|||
}
|
||||
|
||||
if (peerConnection != null) {
|
||||
peerConnection.removeStream(localMediaStream);
|
||||
peerConnection.close();
|
||||
peerConnection = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue