notifying before waiting serves no purpose because we have the lock

This commit is contained in:
Isaac Connor 2021-10-13 15:02:07 -04:00
parent 4fee4d01e3
commit 74ac79479f
1 changed files with 0 additions and 1 deletions

View File

@ -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;