mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
End peer if ICE failed
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
e1b844c669
commit
26c7a3455a
@ -194,6 +194,9 @@ public class MagicPeerConnectionWrapper {
|
||||
if (iceConnectionState.equals(PeerConnection.IceConnectionState.CONNECTED) && hasInitiated) {
|
||||
sendChannelData(new DataChannelMessage("videoOn"));
|
||||
sendChannelData(new DataChannelMessage("audioOn"));
|
||||
} else if (iceConnectionState.equals(PeerConnection.IceConnectionState.FAILED)) {
|
||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||
.CLOSE_PEER, sessionId));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user