mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
Handle ThreadPoolShutdown with normal catch
This commit is contained in:
parent
3f9ff10786
commit
16320f6d24
@ -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 New Issue
Block a user