diff --git a/compiler/load/src/file.rs b/compiler/load/src/file.rs index a823bf9e3e..046070a033 100644 --- a/compiler/load/src/file.rs +++ b/compiler/load/src/file.rs @@ -417,7 +417,12 @@ fn load_deps<'a>( // We're done! debug_assert!(msg_rx.is_empty()); - dbg!("TODO send Shutdown messages to all the worker threads."); + // Shut down all the worker threads. + for listener in worker_listeners { + listener + .send(WorkerMsg::Shutdown) + .map_err(|_| LoadingProblem::MsgChannelDied)?; + } state.type_problems.extend(problems);