Skip to content

Commit

Permalink
levin_protocol_handler_async: do not propagate exception through dtor
Browse files Browse the repository at this point in the history
Coverity 161856
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 1eebb82 commit a093092
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/epee/include/net/levin_protocol_handler_async.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ class async_protocol_handler
}
virtual ~async_protocol_handler()
{
try
{

m_deletion_initiated = true;
if(m_connection_initialized)
{
Expand All @@ -288,6 +291,9 @@ class async_protocol_handler
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()");

}
catch (...) { /* ignore */ }
}

bool start_outer_call()
Expand Down

0 comments on commit a093092

Please sign in to comment.