Add IDLE to the states where we will close the event at section length end time.

pull/3600/head
Isaac Connor 2022-09-23 14:17:28 -04:00
parent 63e4c81d9c
commit e91b11d1db
1 changed files with 1 additions and 1 deletions

View File

@ -2213,7 +2213,7 @@ bool Monitor::Analyse() {
// Alert means this frame has no motion, but we were alarmed and are still recording.
if ((noteSetMap.size() > 0) and event)
event->updateNotes(noteSetMap);
} else if (state == TAPE) {
} else if (state == TAPE || state == IDLE) {
if (event) {
if (section_length >= Seconds(min_section_length) && (event->Duration() >= section_length)) {
Debug(1, "%s: event %" PRIu64 ", has exceeded desired section length. %" PRIi64 " - %" PRIi64 " = %" PRIi64 " >= %" PRIi64,