Sfoglia il codice sorgente

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 anni fa
parent
commit
f44b2850c4
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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);