diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 17:42:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 17:42:39 +0000 |
commit | fb6a363050372358646331712173c9fa620dd29c (patch) | |
tree | 17d83602587b11b6eb36d033c4c54df75422abf0 /src | |
parent | epee: do not propagate exception through dtor (diff) | |
download | monero-fb6a363050372358646331712173c9fa620dd29c.tar.xz |
miner: do not propagate exceptions through dtor
Coverity 161862
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 3 |
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) |