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:
Arne Welzel 2023-03-14 17:53:43 +01:00
parent a9cec2e4f4
commit a9f8627dd9
2 changed files with 4 additions and 14 deletions

View file

@ -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;
}