mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 00:07:38 +00:00
levin_protocol_handler_async: do not propagate exception through dtor
Coverity 161856
This commit is contained in:
parent
1eebb82bcc
commit
a093092ef7
1 changed files with 6 additions and 0 deletions
|
@ -275,6 +275,9 @@ public:
|
||||||
}
|
}
|
||||||
virtual ~async_protocol_handler()
|
virtual ~async_protocol_handler()
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
m_deletion_initiated = true;
|
m_deletion_initiated = true;
|
||||||
if(m_connection_initialized)
|
if(m_connection_initialized)
|
||||||
{
|
{
|
||||||
|
@ -288,6 +291,9 @@ public:
|
||||||
CHECK_AND_ASSERT_MES_NO_RET(0 == boost::interprocess::ipcdetail::atomic_read32(&m_wait_count), "Failed to wait for operation completion. m_wait_count = " << m_wait_count);
|
CHECK_AND_ASSERT_MES_NO_RET(0 == boost::interprocess::ipcdetail::atomic_read32(&m_wait_count), "Failed to wait for operation completion. m_wait_count = " << m_wait_count);
|
||||||
|
|
||||||
MTRACE(m_connection_context << "~async_protocol_handler()");
|
MTRACE(m_connection_context << "~async_protocol_handler()");
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (...) { /* ignore */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
bool start_outer_call()
|
bool start_outer_call()
|
||||||
|
|
Loading…
Reference in a new issue