Commit Graph
5 Commits
Author SHA1 Message Date
Nic BoetandClaude Opus 5.5 dcca007124 fix: let PollThread::Stop end the wait between polls
Monitor::Poll() ended by sleeping until 10 s after it started, and
PollThread::Stop() joins the thread, so Monitor::Close() waited for the
rest of that sleep: up to 10 s on every stop, reconnect and reload of a
zmc whose monitor has an ONVIF event listener, Janus, RTSP2Web, Go2RTC
or the Amcrest API enabled.

Wait for the next poll in PollThread::Run() on a condition variable
that Stop() notifies. Polls still start every 10 s.

fixes #5269

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 15:53:51 -05:00
Isaac ConnorandClaude Opus 4.5 ed6cb8de88 fix: call Stop() before restarting in PollThread::Start()
Prevents potential deadlock by ensuring any running thread is signaled
to terminate before joining, matching the pattern used in other thread
classes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 12:13:29 -05:00
Isaac Connor 1f9192520a Don't need zm_time, should have zm_logger 2025-09-25 10:09:33 -04:00
Aaron Kling c4683d90a9 Format code using astyle google format
Commands used:
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.cpp
astyle --style=google --indent=spaces=2 --keep-one-line-blocks src/*.h
2024-03-26 13:43:58 -05:00
Jonathan Bennett 1333d8c751 Adds ONVIF Motion Detection Support 2022-01-06 16:45:15 -06:00