aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanoAkron <nanoakron@users.noreply.github.com>2016-10-04 01:10:12 +0100
committerNanoAkron <nanoakron@users.noreply.github.com>2016-10-04 01:10:12 +0100
commitfb1785ab94f1c0420f912185aeab371c1a716aa2 (patch)
tree3ac5149989abfaf5d56f246a072e1c56cdb4adbf
parentMoved logging to target functions rather than caller (diff)
downloadmonero-fb1785ab94f1c0420f912185aeab371c1a716aa2.tar.xz
Brackets to ensure doesn't function prematurely return
-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);