From 009c4e0b945b2c111368afdc2c9813c32db0a9b7 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 21 Oct 2024 14:45:19 +0200 Subject: [PATCH] Fixing performance degradation on Intel. --- launcher/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index d9f569fd..d52b862e 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1263,7 +1263,7 @@ fn download_convert_model( let download_stdout = BufReader::new(download_process.stdout.take().unwrap()); - thread::spawn(move || { + let t = thread::spawn(move || { log_lines(download_stdout); }); @@ -1305,6 +1305,7 @@ fn download_convert_model( } sleep(Duration::from_millis(100)); } + t.join().expect("Closing log reading thread"); Ok(()) }