Implement thread_state::errored

State after calling thread emergency_exit() function.
Also default-construct thread result in this case.
This commit is contained in:
Nekotekina 2020-03-20 20:18:08 +03:00
parent eb2dcaf602
commit c577bd2111
5 changed files with 50 additions and 15 deletions

View file

@ -513,7 +513,7 @@ void main_window::HandlePackageInstallation(QStringList file_paths)
});
// Wait for the completion
while (std::this_thread::sleep_for(5ms), worker != thread_state::finished)
while (std::this_thread::sleep_for(5ms), worker <= thread_state::aborting)
{
if (pdlg.wasCanceled())
{