mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-30 23:14:42 +00:00
Add logging for ICE failed
This commit is contained in:
@@ -306,8 +306,14 @@ class RTCPeer extends Peer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onIceConnectionStateChange(){
|
_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) {
|
_onError(error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user