diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index eb4eb3395..704df6639 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2028,7 +2028,7 @@ bool Monitor::Analyse() { Info("%s: %03d - Gone into alert state", name.c_str(), analysis_image_count); shared_data->state = state = ALERT; } else if (state == ALERT) { - if ( + if ( event && ((analysis_image_count - last_alarm_count) > post_event_count) && (event->Duration() >= min_section_length)) {