From 03e4dfbbd22ca2a182459cc416dd591bd8e7100a Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 21 Nov 2019 16:45:44 +0300 Subject: [PATCH] fixed possible exception issues in miner dtor --- src/currency_core/miner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/currency_core/miner.cpp b/src/currency_core/miner.cpp index ff2579e2..ff32d3e3 100644 --- a/src/currency_core/miner.cpp +++ b/src/currency_core/miner.cpp @@ -62,7 +62,9 @@ namespace currency //----------------------------------------------------------------------------------------------------- miner::~miner() { + TRY_ENTRY(); stop(); + CATCH_ENTRY_NO_RETURN(); } //----------------------------------------------------------------------------------------------------- bool miner::set_block_template(const block& bl, const wide_difficulty_type& di, uint64_t height)