Skip to content

Commit a1d2b60

Browse files
Merge pull request #4408 from IgorA100/patch-178464
Fix: Check for existence of "this.webrtc" before checking "close" method (MonitorStream.js)
2 parents 6340096 + a16143a commit a1d2b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/MonitorStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function MonitorStream(monitorData) {
549549
console.warn(e);
550550
}
551551
}
552-
if (close in this.webrtc) this.webrtc.close();
552+
if (this.webrtc && ('close' in this.webrtc)) this.webrtc.close();
553553
this.webrtc = null;
554554
} else if (-1 !== this.activePlayer.indexOf('rtsp2web')) {
555555
if (this.webrtc) {

0 commit comments

Comments
 (0)