diff --git a/public/scripts/network.js b/public/scripts/network.js index 0083814..615dae2 100644 --- a/public/scripts/network.js +++ b/public/scripts/network.js @@ -524,6 +524,7 @@ class RTCPeer extends Peer { this._peerId = peerId; this._conn = new RTCPeerConnection(window.rtcConfig); this._conn.onicecandidate = e => this._onIceCandidate(e); + this._conn.onicecandidateerror = e => this._onError(e); this._conn.onconnectionstatechange = _ => this._onConnectionStateChange(); this._conn.oniceconnectionstatechange = e => this._onIceConnectionStateChange(e); } diff --git a/public_included_ws_fallback/scripts/network.js b/public_included_ws_fallback/scripts/network.js index c45f37a..0ddf0e7 100644 --- a/public_included_ws_fallback/scripts/network.js +++ b/public_included_ws_fallback/scripts/network.js @@ -535,6 +535,7 @@ class RTCPeer extends Peer { this._peerId = peerId; this._conn = new RTCPeerConnection(window.rtcConfig); this._conn.onicecandidate = e => this._onIceCandidate(e); + this._conn.onicecandidateerror = e => this._onError(e); this._conn.onconnectionstatechange = _ => this._onConnectionStateChange(); this._conn.oniceconnectionstatechange = e => this._onIceConnectionStateChange(e); }