diff --git a/src/zm_rtsp_server.cpp b/src/zm_rtsp_server.cpp index ea6f4e2b7..0df1e76b2 100644 --- a/src/zm_rtsp_server.cpp +++ b/src/zm_rtsp_server.cpp @@ -306,6 +306,10 @@ int main(int argc, char *argv[]) { } audio_sources[monitor->Id()] = audioSource; } // end if ! sessions[monitor->Id()] + if (sessions[monitor->Id()]->GetNumClient() > 0) { + SystemTimePoint now = std::chrono::system_clock::now(); + monitor->setLastViewed(now); + } } // end foreach monitor sleep(10);