miner: do not propagate exceptions through dtor

Coverity 161862
release-v0.5.1
moneromooo-monero 6 years ago
parent 2e2139ffb7
commit fb6a363050
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -121,7 +121,8 @@ namespace cryptonote
//----------------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------------
miner::~miner() miner::~miner()
{ {
stop(); try { stop(); }
catch (...) { /* ignore */ }
} }
//----------------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------------
bool miner::set_block_template(const block& bl, const difficulty_type& di, uint64_t height) bool miner::set_block_template(const block& bl, const difficulty_type& di, uint64_t height)

Loading…
Cancel
Save