mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Handle ThreadPoolShutdown with normal catch
This commit is contained in:
parent
3f9ff10786
commit
16320f6d24
1 changed files with 3 additions and 2 deletions
|
@ -115,9 +115,10 @@ void ThreadPool::doWork(bool mainThread)
|
|||
// workers, which is expected, so we should ignore
|
||||
// it silently and let the first one bubble up,
|
||||
// rethrown via the original state->exception.
|
||||
} catch (const ThreadPoolShutDown &) {
|
||||
// Similarly expected.
|
||||
} catch (std::exception & e) {
|
||||
if (!dynamic_cast<ThreadPoolShutDown*>(&e))
|
||||
ignoreExceptionExceptInterrupt();
|
||||
ignoreExceptionExceptInterrupt();
|
||||
} catch (...) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue