aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2020-04-25 15:26:33 +0100
committerAndrew Gallant <[email protected]>2020-04-25 15:26:33 +0100
commit0c12b7e8c8605e84873858da0c4aa170140c14bb (patch)
treec79cb2cf9e13a564990708a4d898bab8c4dee81c /crates
parentc1a31d4261afda9839020f772fd6a97a12d9c941 (diff)
main: fix bug where thread pool isn't joined
Pointed out here: https://github.com/rust-analyzer/rust-analyzer/pull/4133#issuecomment-619386272
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index c03d3db75..7f6f4ec12 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -222,6 +222,7 @@ pub fn main_loop(ws_roots: Vec<PathBuf>, config: Config, connection: Connection)
222 libdata_receiver.into_iter().for_each(drop); 222 libdata_receiver.into_iter().for_each(drop);
223 log::info!("...tasks have finished"); 223 log::info!("...tasks have finished");
224 log::info!("joining threadpool..."); 224 log::info!("joining threadpool...");
225 pool.join();
225 drop(pool); 226 drop(pool);
226 log::info!("...threadpool has finished"); 227 log::info!("...threadpool has finished");
227 228