From e159948d6289a28fbc787b126b0211ae792a193d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 5 Feb 2024 17:39:05 -0500 Subject: [PATCH] Handle state==TAPE when CLOSE_EVENT_MODE=IDLE --- 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 9533d15d0..c79968db0 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2336,7 +2336,7 @@ bool Monitor::Analyse() { closeEvent(); } } else if (event_close_mode == CLOSE_IDLE) { - if (state == IDLE) { + if (state == IDLE || state == TAPE) { if ((shared_data->recording == RECORDING_ALWAYS) and (event->Duration() >= section_length)) { //std::chrono::duration_cast(snap->timestamp.time_since_epoch()) % section_length == Seconds(0)) { Info("%s: %03d - Closing event %" PRIu64 ", section end forced %" PRIi64 " - %" PRIi64 " = %" PRIi64 " >= %" PRIi64 ,