Browse Source

fix: Fix possible undefined error in bwe stats.

dev0
damencho 5 months ago
parent
commit
04bfb15f62
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/connectivity/ConnectionQuality.js

+ 1
- 1
modules/connectivity/ConnectionQuality.js View File

@@ -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
             });

Loading…
Cancel
Save