From d46c06d201d58f3c026ebb3afd069e87161151a3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 1 May 2018 12:19:46 -0400 Subject: [PATCH] remove extra event=NULL and spaces --- src/zm_monitor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 4b268c016..71ec33ea1 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2542,7 +2542,7 @@ void Monitor::TimestampImage( Image *ts_image, const struct timeval *ts_time ) c bool Monitor::closeEvent() { if ( event ) { if ( function == RECORD || function == MOCORD ) { - gettimeofday( &(event->EndTime()), NULL ); + gettimeofday(&(event->EndTime()), NULL); } if ( event_delete_thread ) { event_delete_thread->join(); @@ -2554,9 +2554,8 @@ bool Monitor::closeEvent() { event = NULL; delete e; e = NULL; - }, event ); + }, event); video_store_data->recording = (struct timeval){0}; - event = NULL; return true; } return false;