aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:40:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:40:56 +0000
commit2e2139ffb79c225a49f3ce5b002dc200d7ca5b02 (patch)
tree829bfc0fef6a874d330eef75117132bc7402d6e4
parentdb_lmdb: do not propagate exceptions in dtor (diff)
downloadmonero-2e2139ffb79c225a49f3ce5b002dc200d7ca5b02.tar.xz
epee: do not propagate exception through dtor
Coverity 161867
-rw-r--r--contrib/epee/include/console_handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h
index 0e22a971c..2ccf5b095 100644
--- a/contrib/epee/include/console_handler.h
+++ b/contrib/epee/include/console_handler.h
@@ -63,7 +63,8 @@ namespace epee
~async_stdin_reader()
{
- stop();
+ try { stop(); }
+ catch (...) { /* ignore */ }
}
#ifdef HAVE_READLINE