main: fix bug where thread pool isn't joined

Pointed out here:
https://github.com/rust-analyzer/rust-analyzer/pull/4133#issuecomment-619386272
This commit is contained in:
Andrew Gallant 2020-04-25 10:26:33 -04:00
parent c1a31d4261
commit 0c12b7e8c8
No known key found for this signature in database
GPG key ID: B2E3A4923F8B0D44

View file

@ -222,6 +222,7 @@ pub fn main_loop(ws_roots: Vec<PathBuf>, 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");