diff --git a/kicad/pcm/pcm_task_manager.cpp b/kicad/pcm/pcm_task_manager.cpp index eef4d95f19..8b9b789e1e 100644 --- a/kicad/pcm/pcm_task_manager.cpp +++ b/kicad/pcm/pcm_task_manager.cpp @@ -640,11 +640,14 @@ void PCM_TASK_MANAGER::RunQueue( wxWindow* aParent ) } ); m_reporter->KeepRefreshing( true ); + + download_thread.join(); + install_thread.join(); + + // Destroy the reporter only after the threads joined + // Incase the reporter terminated due to cancellation m_reporter->Destroy(); m_reporter.reset(); aParent->Raise(); - - download_thread.join(); - install_thread.join(); }