mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -62,7 +62,14 @@ void Net_API uninitializeNetwork()
|
||||
~NetworkInitializer()
|
||||
/// Calls Poco::Net::uninitializeNetwork();
|
||||
{
|
||||
Poco::Net::uninitializeNetwork();
|
||||
try
|
||||
{
|
||||
Poco::Net::uninitializeNetwork();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user