aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:42:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:42:39 +0000
commitfb6a363050372358646331712173c9fa620dd29c (patch)
tree17d83602587b11b6eb36d033c4c54df75422abf0 /src
parentepee: do not propagate exception through dtor (diff)
downloadmonero-fb6a363050372358646331712173c9fa620dd29c.tar.xz
miner: do not propagate exceptions through dtor
Coverity 161862
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_basic/miner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index dfe456ef4..28ceee0cd 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -121,7 +121,8 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------------
miner::~miner()
{
- stop();
+ try { stop(); }
+ catch (...) { /* ignore */ }
}
//-----------------------------------------------------------------------------------------------------
bool miner::set_block_template(const block& bl, const difficulty_type& di, uint64_t height)