mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Ensure time continues moving forward if a pcap source is suspended
This commit is contained in:
parent
5377dd446d
commit
2c8d0f60da
5 changed files with 61 additions and 2 deletions
|
@ -93,7 +93,7 @@ void TimerMgr::Process()
|
|||
// pseudo-realtime), advance the timer here to the current time since otherwise it won't
|
||||
// move forward and the timers won't fire correctly.
|
||||
iosource::PktSrc* pkt_src = iosource_mgr->GetPktSrc();
|
||||
if ( ! pkt_src || ! pkt_src->IsOpen() || reading_live )
|
||||
if ( ! pkt_src || ! pkt_src->IsOpen() || reading_live || net_is_processing_suspended() )
|
||||
net_update_time(current_time());
|
||||
|
||||
// Just advance the timer manager based on the current network time. This won't actually
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue