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:
Jon Siwek 2018-08-23 16:48:49 -05:00
parent b9dfca7789
commit af181474c1

View file

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