From 296f6af7fb707bfc5a81105c9f14656568c8f0ea Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 1 Nov 2020 17:15:42 -0500 Subject: [PATCH] Remove dirty hack that sets EndTime from monitor. It can get set in event destructor --- src/zm_monitor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 7a1677d7b..231b02916 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2654,10 +2654,6 @@ bool Monitor::closeEvent() { if ( !event ) return false; - if ( function == RECORD || function == MOCORD ) { - //FIXME Is this neccessary? ENdTime should be set in the destructor - gettimeofday(&(event->EndTime()), nullptr); - } if ( event_delete_thread ) { event_delete_thread->join(); delete event_delete_thread;