From 74ac79479f2aadac687f53dfd88eeffd9948389c Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 13 Oct 2021 15:02:07 -0400 Subject: [PATCH] notifying before waiting serves no purpose because we have the lock --- src/zm_packetqueue.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/zm_packetqueue.cpp b/src/zm_packetqueue.cpp index 8a393cf9c..f9f5ae330 100644 --- a/src/zm_packetqueue.cpp +++ b/src/zm_packetqueue.cpp @@ -95,7 +95,6 @@ bool PacketQueue::queuePacket(std::shared_ptr 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;