mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-06-23 04:59:37 -04:00
Prevent pointless setInterval(this.statusCmdQuery) calls for "frozen" objects. (MonitorStream.js)
This PR doesn't fix the root cause of the issue, but addresses the consequences. I spent time investigating the problem, but I couldn't figure out the root cause because it's difficult to debug. Perhaps I'll revisit this issue later. For now, let's leave it at that.
This commit is contained in:
@@ -1564,6 +1564,12 @@ function MonitorStream(monitorData) {
|
||||
.fail(logAjaxFail);
|
||||
|
||||
if (this.Go2RTCEnabled && ((!this.player) || (-1 !== this.player.indexOf('go2rtc')))) {
|
||||
if (!this.element.currentMode) {
|
||||
// TODO: For some reason, when switching monitors very quickly on the Watch page while using go2rtc, "this.statusCmdTimer" sometimes doesn't clear.
|
||||
// This is likely due to the generation of the <video> tag in video-rtc.js.
|
||||
clearInterval(this.statusCmdTimer);
|
||||
return;
|
||||
}
|
||||
if (-1 !== this.element.currentMode.toLowerCase().indexOf('mse')) {
|
||||
$j('#delay'+this.id).removeClass('hidden');
|
||||
this.manageMSESocket(this.element.video, this.element.ws, this.element.ms);
|
||||
|
||||
Reference in New Issue
Block a user