Further fix to is_idle() and rethrow unhandled exception after finalize
In UIThreadWorker
This commit is contained in:
parent
6ab8e3a138
commit
c5e3a56511
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue