From 7cd8f3d88720fd3be10ae0a778b558837cf46cae Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 19 Oct 2021 13:04:49 -0400 Subject: [PATCH] Only record when in modect or nodect. Linked monitors would cause a monitor in monitor mode to record --- src/zm_monitor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index f82f9a523..d7f524cc4 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2028,8 +2028,7 @@ bool Monitor::Analyse() { } // end if ! event } // end if RECORDING - if (score) { - + if (score and (function == MODECT or function == NODECT)) { if ((state == IDLE) || (state == TAPE) || (state == PREALARM)) { // If we should end then previous continuous event and start a new non-continuous event if (event && event->Frames()