Don't need to test for event

pull/3530/head
Isaac Connor 2022-07-14 10:25:19 -04:00
parent b4c832c789
commit 43649e1e36
1 changed files with 2 additions and 4 deletions

View File

@ -2152,10 +2152,8 @@ bool Monitor::Analyse() {
event = openEvent(snap, cause, noteSetMap);
}
} else if (shared_data->recording != RECORDING_NONE) {
if (!event) {
event = openEvent(snap, cause, noteSetMap);
Info("%s: %03d - Opening new event %" PRIu64 ", alarm start", name.c_str(), analysis_image_count, event->Id());
} // end if no event, so start it
event = openEvent(snap, cause, noteSetMap);
Info("%s: %03d - Opening new event %" PRIu64 ", alarm start", name.c_str(), analysis_image_count, event->Id());
if (alarm_frame_count) {
Debug(1, "alarm frame count so SavePreAlarmFrames");
event->SavePreAlarmFrames();