Handle state==TAPE when CLOSE_EVENT_MODE=IDLE

pull/3817/head
Isaac Connor 2024-02-05 17:39:05 -05:00
parent c9c2898912
commit e159948d62
1 changed files with 1 additions and 1 deletions

View File

@ -2336,7 +2336,7 @@ bool Monitor::Analyse() {
closeEvent(); closeEvent();
} }
} else if (event_close_mode == CLOSE_IDLE) { } 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)) { if ((shared_data->recording == RECORDING_ALWAYS) and (event->Duration() >= section_length)) {
//std::chrono::duration_cast<Seconds>(snap->timestamp.time_since_epoch()) % section_length == Seconds(0)) { //std::chrono::duration_cast<Seconds>(snap->timestamp.time_since_epoch()) % section_length == Seconds(0)) {
Info("%s: %03d - Closing event %" PRIu64 ", section end forced %" PRIi64 " - %" PRIi64 " = %" PRIi64 " >= %" PRIi64 , Info("%s: %03d - Closing event %" PRIu64 ", section end forced %" PRIi64 " - %" PRIi64 " = %" PRIi64 " >= %" PRIi64 ,