mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +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) {
|
||||
if (peerConnection != null) {
|
||||
if (peerConnection.getRemoteDescription() != null) {
|
||||
peerConnection.addIceCandidate(iceCandidate);
|
||||
} else {
|
||||
iceCandidates.add(iceCandidate);
|
||||
}
|
||||
if (peerConnection != null && peerConnection.getRemoteDescription() != null) {
|
||||
peerConnection.addIceCandidate(iceCandidate);
|
||||
} else {
|
||||
iceCandidates.add(iceCandidate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue