Skip to content

Prevent pointless setInterval(this.statusCmdQuery) calls for "frozen"objects. (MonitorStream.js)#4887

Open
IgorA100 wants to merge 2 commits into
ZoneMinder:masterfrom
IgorA100:patch-492088
Open

Prevent pointless setInterval(this.statusCmdQuery) calls for "frozen"objects. (MonitorStream.js)#4887
IgorA100 wants to merge 2 commits into
ZoneMinder:masterfrom
IgorA100:patch-492088

Conversation

@IgorA100
Copy link
Copy Markdown
Contributor

@IgorA100 IgorA100 commented Jun 4, 2026

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.

… 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.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to mitigate a Watch-page issue where statusCmdQuery continues to run on stale (“frozen”) MonitorStream instances (not fixing the underlying root cause), by adding a guard in MonitorStream.statusCmdQuery for go2rtc streams.

Changes:

  • Added a currentMode guard in the go2rtc branch of statusCmdQuery.
  • When the guard triggers, attempts to stop further polling by clearing this.statusCmdTimer and returning early.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/js/MonitorStream.js Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@IgorA100
Copy link
Copy Markdown
Contributor Author

IgorA100 commented Jun 5, 2026

Please recheck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants