mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 23:02:15 +00:00
Add logging for ICE failed
This commit is contained in:
@@ -306,8 +306,14 @@ class RTCPeer extends Peer {
|
||||
}
|
||||
}
|
||||
|
||||
_onIceConnectionStateChange(){
|
||||
console.log('IceConnectionStateChange',this._conn.iceConnectionState);
|
||||
_onIceConnectionStateChange() {
|
||||
switch (this._conn.iceConnectionState) {
|
||||
case 'failed':
|
||||
console.error('ICE Gathering failed');
|
||||
break;
|
||||
default:
|
||||
console.log('ICE Gathering', this._conn.iceConnectionState);
|
||||
}
|
||||
}
|
||||
|
||||
_onError(error) {
|
||||
|
||||
Reference in New Issue
Block a user