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,12 +125,10 @@ public class MagicPeerConnectionWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addCandidate(IceCandidate iceCandidate) {
|
public void addCandidate(IceCandidate iceCandidate) {
|
||||||
if (peerConnection != null) {
|
if (peerConnection != null && peerConnection.getRemoteDescription() != null) {
|
||||||
if (peerConnection.getRemoteDescription() != null) {
|
peerConnection.addIceCandidate(iceCandidate);
|
||||||
peerConnection.addIceCandidate(iceCandidate);
|
} else {
|
||||||
} else {
|
iceCandidates.add(iceCandidate);
|
||||||
iceCandidates.add(iceCandidate);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue