From fb1785ab94f1c0420f912185aeab371c1a716aa2 Mon Sep 17 00:00:00 2001 From: NanoAkron Date: Tue, 4 Oct 2016 01:10:12 +0100 Subject: [PATCH] Brackets to ensure doesn't function prematurely return --- src/cryptonote_core/miner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cryptonote_core/miner.cpp b/src/cryptonote_core/miner.cpp index 7e4f705a..6f4e706e 100644 --- a/src/cryptonote_core/miner.cpp +++ b/src/cryptonote_core/miner.cpp @@ -281,8 +281,10 @@ namespace cryptonote LOG_PRINT_L1("Miner has received stop signal"); if (!is_mining()) + { LOG_PRINT_L1("Not mining - nothing to stop" ); return true; + } send_stop_signal(); CRITICAL_REGION_LOCAL(m_threads_lock);