1
0
mirror of https://github.com/RobinLinus/snapdrop.git synced 2025-05-16 15:40:10 -07:00

Add logging for ICE failed

This commit is contained in:
RobinLinus 2018-09-25 18:58:52 +02:00
parent b65dab968e
commit ab52a58fc5

View File

@ -307,7 +307,13 @@ class RTCPeer extends Peer {
}
_onIceConnectionStateChange() {
console.log('IceConnectionStateChange',this._conn.iceConnectionState);
switch (this._conn.iceConnectionState) {
case 'failed':
console.error('ICE Gathering failed');
break;
default:
console.log('ICE Gathering', this._conn.iceConnectionState);
}
}
_onError(error) {