diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 17:46:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 18:02:42 +0000 |
commit | a093092ef7fad731853fb8ea7b39c9f35ff4315c (patch) | |
tree | 1a2c52f55a76c0b9b7648151e030fbc5c449d956 /contrib/epee/include | |
parent | net_helper: do not propagate exceptions through dtor (diff) | |
download | monero-a093092ef7fad731853fb8ea7b39c9f35ff4315c.tar.xz |
levin_protocol_handler_async: do not propagate exception through dtor
Coverity 161856
Diffstat (limited to 'contrib/epee/include')
-rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 0b1fe05fa..e9853ee26 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -275,6 +275,9 @@ public: } virtual ~async_protocol_handler() { + try + { + m_deletion_initiated = true; 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); MTRACE(m_connection_context << "~async_protocol_handler()"); + + } + catch (...) { /* ignore */ } } bool start_outer_call() |