mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -59,8 +59,15 @@ AsyncChannel::AsyncChannel(Channel* pChannel, Thread::Priority prio):
|
||||
|
||||
AsyncChannel::~AsyncChannel()
|
||||
{
|
||||
close();
|
||||
if (_pChannel) _pChannel->release();
|
||||
try
|
||||
{
|
||||
close();
|
||||
if (_pChannel) _pChannel->release();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user