miner: do not propagate exceptions through dtor

Coverity 161862
This commit is contained in:
moneromooo-monero 2018-09-27 17:42:39 +00:00
parent 2e2139ffb7
commit fb6a363050
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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)