소스 검색

fix: Fix possible undefined error in bwe stats.

master
damencho 6 달 전
부모
커밋
45a4861a29
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
             });

Loading…
취소
저장