Skip to content

Commit

Permalink
miner: do not propagate exceptions through dtor
Browse files Browse the repository at this point in the history
Coverity 161862
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 2e2139f commit fb6a363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cryptonote_basic/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb6a363

Please sign in to comment.