Skip to content

Commit

Permalink
Use packetqueue.unlock so that we wakeup event threads waiting on the…
Browse files Browse the repository at this point in the history
… packet.
  • Loading branch information
Isaac Connor committed Aug 2, 2024
1 parent 912b181 commit 9aa5b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zm_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 9aa5b65

Please sign in to comment.