mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-13 14:45:36 +02:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -85,7 +85,14 @@ struct MySQL_API MySQLConnectorRegistrator
|
||||
~MySQLConnectorRegistrator()
|
||||
/// Calls Poco::Data::MySQL::unregisterConnector();
|
||||
{
|
||||
Poco::Data::MySQL::Connector::unregisterConnector();
|
||||
try
|
||||
{
|
||||
Poco::Data::MySQL::Connector::unregisterConnector();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user