The task is switched to the Finished state when shutdown is received.

This commit is contained in:
Jason Travis Smith 2016-06-26 08:09:21 -04:00
parent 7492d3989e
commit 455f873f2a

View File

@ -153,7 +153,10 @@ impl ComputeThread
Ok(val) => Ok(val) =>
{ {
// Found a message. // Found a message.
self.continue_running = !val; if !val == false
{
self.change_state(ThreadState::Finished);
}
} }
Err(error) => Err(error) =>