Merge remote-tracking branch 'origin/topic/jsiwek/extra-pktsrc-process'

* origin/topic/jsiwek/extra-pktsrc-process:
  Fix a case where PktSrc gets processed twice in one runloop iteration
This commit is contained in:
Tim Wojtulewicz 2020-08-24 14:28:25 -07:00
commit fec45a8be2
3 changed files with 23 additions and 2 deletions

View file

@ -166,7 +166,7 @@ void Manager::FindReadySources(std::vector<IOSource*>* ready)
}
else
{
if ( ! zeek::run_state::pseudo_realtime )
if ( ! zeek::run_state::pseudo_realtime && ! time_to_poll )
// A pcap file is always ready to process unless it's suspended
ready->push_back(pkt_src);
}