Browse Source

Do not show protocol error alert when DC closes (#958)

Danilo Bargen 5 years ago
parent
commit
99776a81f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/services/webclient.ts

+ 2 - 2
src/services/webclient.ts

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