mirror of
https://github.com/nextcloud/talk-android
synced 2025-08-03 01:55:40 +01:00
Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
af95d66583
commit
11e03fb535
@ -125,14 +125,12 @@ public class MagicPeerConnectionWrapper {
|
||||
}
|
||||
|
||||
public void addCandidate(IceCandidate iceCandidate) {
|
||||
if (peerConnection != null) {
|
||||
if (peerConnection.getRemoteDescription() != null) {
|
||||
if (peerConnection != null && peerConnection.getRemoteDescription() != null) {
|
||||
peerConnection.addIceCandidate(iceCandidate);
|
||||
} else {
|
||||
iceCandidates.add(iceCandidate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void sendChannelData(DataChannelMessage dataChannelMessage) {
|
||||
ByteBuffer buffer = null;
|
||||
|
Loading…
Reference in New Issue
Block a user