7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 22:43:44 +00:00

Don't destroy the DIALOG_PCM_PROGRESS until after the threads actually terminated

This commit is contained in:
Marek Roszko 2023-02-26 17:44:09 -05:00
parent fe9370ceea
commit 47cf26f047

View File

@ -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();
}