Only complain about finding an iterator if we havn't found a new keyframe

This commit is contained in:
Isaac Connor 2021-04-14 12:48:53 -04:00
parent bd65420c07
commit 9b4fcf4e92
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ void PacketQueue::clearPackets(ZMPacket *add_packet) {
if (!lp->trylock()) break;
delete lp;
if (is_there_an_iterator_pointing_to_packet(zm_packet)) {
if (is_there_an_iterator_pointing_to_packet(zm_packet) and (pktQueue.begin() == next_front)) {
Warning("Found iterator at beginning of queue. Some thread isn't keeping up");
break;
}