Don't consult EVENT_CLOSE_MODE if mode is RECORD

This commit is contained in:
Isaac Connor 2020-06-26 19:30:35 -04:00
parent 73ec5f10a5
commit e137e1dacf
1 changed files with 1 additions and 1 deletions

View File

@ -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(),