Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
f44b2850c4
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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);