From 9aa5b65ffa3b87921a9ed34097ed09a8be9d354a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 2 Aug 2024 10:37:54 -0400 Subject: [PATCH] Use packetqueue.unlock so that we wakeup event threads waiting on the packet. --- src/zm_monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 2d0d81c316..d62992f7c8 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2578,8 +2578,8 @@ bool Monitor::Analyse() { //snap->out_frame = nullptr; } } // end scope for event_lock - delete packet_lock; + packetqueue.unlock(packet_lock); packetqueue.increment_it(analysis_it); shared_data->last_read_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());