mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
BIT-1885: fix "kill" threading message
Now goes through the proper (main thread) channels to signal the thread to stop.
This commit is contained in:
parent
b9dfca7789
commit
af181474c1
1 changed files with 3 additions and 9 deletions
|
@ -94,16 +94,10 @@ public:
|
|||
|
||||
virtual bool Process()
|
||||
{
|
||||
auto rval = true;
|
||||
|
||||
if ( ! Object()->child_finished )
|
||||
{
|
||||
rval = Object()->OnFinish(network_time);
|
||||
Object()->Finished();
|
||||
}
|
||||
|
||||
Object()->SignalStop();
|
||||
Object()->WaitForStop();
|
||||
thread_mgr->KillThread(Object());
|
||||
return rval;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue