Procházet zdrojové kódy

Only fire DATA_CHANNEL_CLOSED when using a websocket. (#2237)

master
bgrozev před 2 roky
rodič
revize
ba7ddbdce7
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7
    7
      modules/RTC/BridgeChannel.js

+ 7
- 7
modules/RTC/BridgeChannel.js Zobrazit soubor

@@ -395,14 +395,14 @@ export default class BridgeChannel {
395 395
 
396 396
                 if (this._mode === 'websocket') {
397 397
                     this._retryWebSocketConnection(event);
398
-                }
399 398
 
400
-                // We only want to send this event the first time the failure happens.
401
-                if (this._connected !== false) {
402
-                    emitter.emit(RTCEvents.DATA_CHANNEL_CLOSED, {
403
-                        code,
404
-                        reason
405
-                    });
399
+                    // We only want to send this event the first time the failure happens.
400
+                    if (this._connected !== false) {
401
+                        emitter.emit(RTCEvents.DATA_CHANNEL_CLOSED, {
402
+                            code,
403
+                            reason
404
+                        });
405
+                    }
406 406
                 }
407 407
             }
408 408
 

Načítá se…
Zrušit
Uložit