From 0c12b7e8c8605e84873858da0c4aa170140c14bb Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 25 Apr 2020 10:26:33 -0400 Subject: main: fix bug where thread pool isn't joined Pointed out here: https://github.com/rust-analyzer/rust-analyzer/pull/4133#issuecomment-619386272 --- crates/rust-analyzer/src/main_loop.rs | 1 + 1 file changed, 1 insertion(+) 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, config: Config, connection: Connection) libdata_receiver.into_iter().for_each(drop); log::info!("...tasks have finished"); log::info!("joining threadpool..."); + pool.join(); drop(pool); log::info!("...threadpool has finished"); -- cgit v1.2.3