mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Small fixes and tweaks.
- Fixing tiny leak. - Fixing threads stat output.
This commit is contained in:
parent
89a3bb33c8
commit
e3f5cbb670
3 changed files with 19 additions and 20 deletions
|
@ -102,25 +102,25 @@ void Manager::Process()
|
|||
next_beat = 0;
|
||||
}
|
||||
|
||||
if ( ! t->HasOut() )
|
||||
continue;
|
||||
|
||||
Message* msg = t->RetrieveOut();
|
||||
|
||||
if ( msg->Process() )
|
||||
while ( t->HasOut() )
|
||||
{
|
||||
if ( network_time )
|
||||
did_process = true;
|
||||
Message* msg = t->RetrieveOut();
|
||||
|
||||
if ( msg->Process() )
|
||||
{
|
||||
if ( network_time )
|
||||
did_process = true;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
string s = msg->Name() + " failed, terminating thread";
|
||||
reporter->Error("%s", s.c_str());
|
||||
t->Stop();
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
string s = msg->Name() + " failed, terminating thread";
|
||||
reporter->Error("%s", s.c_str());
|
||||
t->Stop();
|
||||
delete msg;
|
||||
}
|
||||
|
||||
delete msg;
|
||||
}
|
||||
|
||||
// fprintf(stderr, "P %.6f %.6f do_beat=%d did_process=%d next_next=%.6f\n", network_time, timer_mgr->Time(), do_beat, (int)did_process, next_beat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue