瀏覽代碼

fix: Fix possible undefined error in bwe stats.

master
damencho 5 月之前
父節點
當前提交
45a4861a29
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/connectivity/ConnectionQuality.js

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

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

Loading…
取消
儲存