mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +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()
|
virtual bool Process()
|
||||||
{
|
{
|
||||||
auto rval = true;
|
Object()->SignalStop();
|
||||||
|
Object()->WaitForStop();
|
||||||
if ( ! Object()->child_finished )
|
|
||||||
{
|
|
||||||
rval = Object()->OnFinish(network_time);
|
|
||||||
Object()->Finished();
|
|
||||||
}
|
|
||||||
|
|
||||||
thread_mgr->KillThread(Object());
|
thread_mgr->KillThread(Object());
|
||||||
return rval;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue