mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 06:55:42 +03:00
Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
af95d66583
commit
11e03fb535
1 changed files with 4 additions and 6 deletions
|
@ -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 a new issue