浏览代码

fix: Fix possible undefined error in bwe stats.

dev0
damencho 6 个月前
父节点
当前提交
04bfb15f62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/connectivity/ConnectionQuality.js

+ 1
- 1
modules/connectivity/ConnectionQuality.js 查看文件

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

正在加载...
取消
保存