mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
PktSrc: Move termination pseduo_realtime special case to RunState
This also removes setting pseduo_realtime to 0.0 in the main loop when the packet source has been closed. I had tried to understand the implications it actually seems, if we shutdown the iosource::Manager anyway, it shouldn't and it's just confusing.
This commit is contained in:
parent
a9cec2e4f4
commit
a9f8627dd9
2 changed files with 4 additions and 14 deletions
|
@ -194,12 +194,6 @@ bool PktSrc::ExtractNextPacketInternal()
|
|||
had_packet = false;
|
||||
}
|
||||
|
||||
if ( run_state::pseudo_realtime && ! IsOpen() )
|
||||
{
|
||||
if ( broker_mgr->Active() )
|
||||
iosource_mgr->Terminate();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue