Jelajahi Sumber

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 tahun lalu
induk
melakukan
f44b2850c4
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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);