Don't need to check for end of queue as we already did that when adding packet to the queue

This commit is contained in:
Isaac Connor 2022-02-08 10:06:32 -05:00
parent 2f5a403fc4
commit 8e689340ce
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
) {
auto iterator_it = *iterators_it;
// Have to check each iterator and make sure it doesn't point to the packet we are about to delete
if ((*iterator_it!=pktQueue.end()) and (*(*iterator_it) == zm_packet)) {
if (*(*iterator_it) == zm_packet) {
Debug(1, "Bumping IT because it is at the front that we are deleting");
++(*iterator_it);
}