aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-30 14:53:38 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-30 15:10:25 +0000
commitaba9a9c27777cd0649e9946566d87030f78d8bec (patch)
tree649d0b1d2c48dcaebb0c83b757bf52f16513dad5 /src/cryptonote_core
parentMerge pull request #4821 (diff)
downloadmonero-aba9a9c27777cd0649e9946566d87030f78d8bec.tar.xz
daemon: stop miner before we bring the whole thing down
This avoids the miner erroring out trying to submit blocks to a core that's already shut down (and avoids pegging the CPU while we're busy shutting down).
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 10ab3fe65..dd79c0e67 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -247,6 +247,7 @@ namespace cryptonote
//-----------------------------------------------------------------------------------
void core::stop()
{
+ m_miner.stop();
m_blockchain_storage.cancel();
tools::download_async_handle handle;