From e137e1dacf29ce43193a9533cef75027984b9faf Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 Jun 2020 19:30:35 -0400 Subject: [PATCH] Don't consult EVENT_CLOSE_MODE if mode is RECORD --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index c3c9e755c..ea8f15edf 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1503,7 +1503,7 @@ bool Monitor::Analyse() { if ( section_length && ( ( timestamp->tv_sec - video_store_data->recording.tv_sec ) >= section_length ) - && ( (event_close_mode != CLOSE_TIME) || ! ( timestamp->tv_sec % section_length ) ) + && ( (function == MOCORD && (event_close_mode != CLOSE_TIME)) || ! ( timestamp->tv_sec % section_length ) ) ) { Info("%s: %03d - Closing event %" PRIu64 ", section end forced %d - %d = %d >= %d", name, image_count, event->Id(),