aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/miner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptonote_core/miner.cpp')
-rw-r--r--src/cryptonote_core/miner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/miner.cpp b/src/cryptonote_core/miner.cpp
index 7e4f705a2..6f4e706ed 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);