Further fix to is_idle() and rethrow unhandled exception after finalize

In UIThreadWorker
This commit is contained in:
tamasmeszaros 2022-05-30 10:01:47 +02:00
parent 6ab8e3a138
commit c5e3a56511

View file

@ -35,10 +35,14 @@ class UIThreadWorker : public Worker, private Job::Ctl {
eptr= std::current_exception();
}
m_running = false;
job->finalize(m_canceled, eptr);
// Unhandled exceptions are rethrown without mercy.
if (eptr)
std::rethrow_exception(eptr);
m_running = false;
m_canceled = false;
}
}