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,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 New Issue
Block a user