mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 03:05:56 +08:00
Further fix to is_idle() and rethrow unhandled exception after finalize
In UIThreadWorker
This commit is contained in:
parent
6ab8e3a138
commit
c5e3a56511
@ -35,10 +35,14 @@ class UIThreadWorker : public Worker, private Job::Ctl {
|
|||||||
eptr= std::current_exception();
|
eptr= std::current_exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_running = false;
|
|
||||||
|
|
||||||
job->finalize(m_canceled, eptr);
|
job->finalize(m_canceled, eptr);
|
||||||
|
|
||||||
|
// Unhandled exceptions are rethrown without mercy.
|
||||||
|
if (eptr)
|
||||||
|
std::rethrow_exception(eptr);
|
||||||
|
|
||||||
|
m_running = false;
|
||||||
|
|
||||||
m_canceled = false;
|
m_canceled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user