aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-12-12 12:00:37 +0200
committerRiccardo Spagni <ric@spagni.net>2018-12-12 12:00:37 +0200
commitfe3c8c9682383bcefe7f111bfa1888293bad75d1 (patch)
tree390614b35ef0de9d18b7364f74c29311f688b87e /src/cryptonote_core
parentMerge pull request #4921 (diff)
parentdaemon: stop miner before we bring the whole thing down (diff)
downloadmonero-fe3c8c9682383bcefe7f111bfa1888293bad75d1.tar.xz
Merge pull request #4923
aba9a9c2 daemon: stop miner before we bring the whole thing down (moneromooo-monero)
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 35877a8d1..f3249ea92 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -250,6 +250,7 @@ namespace cryptonote
//-----------------------------------------------------------------------------------
void core::stop()
{
+ m_miner.stop();
m_blockchain_storage.cancel();
tools::download_async_handle handle;