mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -280,7 +280,14 @@ ThreadPool::ThreadPool(const std::string& name,
|
||||
|
||||
ThreadPool::~ThreadPool()
|
||||
{
|
||||
stopAll();
|
||||
try
|
||||
{
|
||||
stopAll();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user