mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -81,7 +81,14 @@ EventLogChannel::EventLogChannel(const std::string& name, const std::string& hos
|
||||
|
||||
EventLogChannel::~EventLogChannel()
|
||||
{
|
||||
close();
|
||||
try
|
||||
{
|
||||
close();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user