浏览代码

Do not trigger a protocol error when the data channel closes

Lennart Grahl 6 年之前
父节点
当前提交
adfb52a33d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/services/webclient.ts

+ 1 - 2
src/services/webclient.ts

@@ -1095,8 +1095,7 @@ export class WebClientService {
                 });
             };
             dc.onclose = () => {
-                this.arpLog.error(`Data channel ${dc.label} closed prematurely`);
-                this.failSession();
+                this.arpLog.info(`Data channel ${dc.label} closed`);
             };
             dc.onerror = (event) => {
                 this.arpLog.error(`Data channel ${dc.label} error:`, event);