Skip to content

Commit 9aa5b65

Browse files
Use packetqueue.unlock so that we wakeup event threads waiting on the packet.
1 parent 912b181 commit 9aa5b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zm_monitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,8 +2578,8 @@ bool Monitor::Analyse() {
25782578
//snap->out_frame = nullptr;
25792579
}
25802580
} // end scope for event_lock
2581-
delete packet_lock;
25822581

2582+
packetqueue.unlock(packet_lock);
25832583
packetqueue.increment_it(analysis_it);
25842584
shared_data->last_read_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
25852585

0 commit comments

Comments
 (0)