Bläddra i källkod

Do not fail the session when the data channel has been closed

Rationale for this change is that the data channel should not close
prematurely any more since we're correctly managing the underlying
buffers. It's not trivial to correctly handle multiple failure events
that have the same cause. Thus, we'll just ignore this event for now.
Lennart Grahl 5 år sedan
förälder
incheckning
f44b2850c4
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      src/services/webclient.ts

+ 1 - 2
src/services/webclient.ts

@@ -1096,8 +1096,7 @@ export class WebClientService {
                 });
             };
             dc.onclose = () => {
-                this.arpLog.warn(`Data channel ${dc.label} closed`);
-                this.failSession(false);
+                this.arpLog.warn(`Data channel ${dc.label} closed (ICE state: ${pc.iceConnectionState})`);
             };
             dc.onerror = (event) => {
                 this.arpLog.error(`Data channel ${dc.label} error:`, event);