From 1093f4d24661e838ffa29a0e3876940958484da5 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Fri, 10 Mar 2023 22:21:19 +0100 Subject: [PATCH] log error onicecandidateerror --- public/scripts/network.js | 1 + public_included_ws_fallback/scripts/network.js | 1 + 2 files changed, 2 insertions(+) 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); }