From 28859542e8df4666504008fb899bbc4426b4f361 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Fri, 26 Apr 2019 12:19:08 +0300 Subject: [PATCH] ui: don't wait for workers to join in Drop for large folders, they will take a lot of time during which the terminal is hung up --- ui/src/workers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/workers.rs b/ui/src/workers.rs index 7b7048175..debfd16fa 100644 --- a/ui/src/workers.rs +++ b/ui/src/workers.rs @@ -19,6 +19,7 @@ impl WorkController { } } +/* impl Drop for WorkController { fn drop(&mut self) { for _ in 0..self.threads.len() { @@ -30,6 +31,7 @@ impl Drop for WorkController { } } } +*/ // We need a way to keep track of what work needs to be done. // This is a multi-source, multi-consumer queue which we call a @@ -228,7 +230,7 @@ impl WorkController { // Report the amount of work done. if cfg!(debug_assertions) { eprint!("{}:{}_{}: ", file!(), line!(), column!()); -eprintln!("Thread {} did {} jobs.", thread_num, work_done); + eprintln!("Thread {} did {} jobs.", thread_num, work_done); } });