mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-08 18:32:08 -04:00
notifying before waiting serves no purpose because we have the lock
This commit is contained in:
1 parent
4fee4d01e3
commit
74ac79479f
1 file changed
-1
@@ -95,7 +95,6 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
|
||||
|
||||
while (packet_counts[video_stream_id] > max_video_packet_count) {
|
||||
Error("Unable to free up older packets. Waiting.");
|
||||
condition.notify_all();
|
||||
condition.wait(lck);
|
||||
if (deleting or zm_terminate)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user