瀏覽代碼

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 年之前
父節點
當前提交
f44b2850c4
共有 1 個文件被更改,包括 1 次插入2 次删除
  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);