aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:43:49 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:43:49 +0000
commit1eebb82bccad539d6c4e4579632137065086b890 (patch)
tree88a9742e0ba0d761146e8d7b4b73ecfdcc6df7d2 /contrib
parentminer: do not propagate exceptions through dtor (diff)
downloadmonero-1eebb82bccad539d6c4e4579632137065086b890.tar.xz
net_helper: do not propagate exceptions through dtor
Coverity 161864
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/net_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/net/net_helper.h b/contrib/epee/include/net/net_helper.h
index 2c2efcd82..94744ac21 100644
--- a/contrib/epee/include/net/net_helper.h
+++ b/contrib/epee/include/net/net_helper.h
@@ -106,7 +106,8 @@ namespace net_utils
~blocked_mode_client()
{
//profile_tools::local_coast lc("~blocked_mode_client()", 3);
- shutdown();
+ try { shutdown(); }
+ catch(...) { /* ignore */ }
}
inline