mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Two more tweaks to reliably terminate when reading from trace.
This commit is contained in:
parent
50104d4b08
commit
fe61d02a9f
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ void Manager::Terminate()
|
|||
msg_threads.clear();
|
||||
|
||||
idle = true;
|
||||
closed = true;
|
||||
terminating = false;
|
||||
}
|
||||
|
||||
|
@ -75,7 +76,7 @@ double Manager::NextTimestamp(double* network_time)
|
|||
{
|
||||
// fprintf(stderr, "N %.6f %.6f did_process=%d next_next=%.6f\n", ::network_time, timer_mgr->Time(), (int)did_process, next_beat);
|
||||
|
||||
if ( did_process || ::network_time > next_beat || ! next_beat )
|
||||
if ( ::network_time && (did_process || ::network_time > next_beat || ! next_beat) )
|
||||
// If we had something to process last time (or out heartbeat
|
||||
// is due or not set yet), we want to check for more asap.
|
||||
return timer_mgr->Time();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue