From 455f873f2a3ca529742be4b922b6f7c6e5cec85f Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sun, 26 Jun 2016 08:09:21 -0400 Subject: [PATCH] The task is switched to the Finished state when shutdown is received. --- src/compute_thread.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compute_thread.rs b/src/compute_thread.rs index 683deaf..bb8a4d1 100644 --- a/src/compute_thread.rs +++ b/src/compute_thread.rs @@ -153,7 +153,10 @@ impl ComputeThread Ok(val) => { // Found a message. - self.continue_running = !val; + if !val == false + { + self.change_state(ThreadState::Finished); + } } Err(error) =>