Ver código fonte

fix: Fix possible undefined error in bwe stats.

master
damencho 5 meses atrás
pai
commit
45a4861a29
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      modules/connectivity/ConnectionQuality.js

+ 1
- 1
modules/connectivity/ConnectionQuality.js Ver arquivo

@@ -149,7 +149,7 @@ export default class ConnectionQuality {
149 149
         conference.on(
150 150
             ConferenceEvents.BRIDGE_BWE_STATS_RECEIVED,
151 151
             bwe => {
152
-                if (bwe) {
152
+                if (bwe && this._localStats?.bandwidth) {
153 153
                     this._localStats.bandwidth.download = Math.floor(bwe / 1000);
154 154
                 }
155 155
             });

Carregando…
Cancelar
Salvar