mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 00:15:50 -04:00
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).
This commit is contained in:
parent
58ce16d4d9
commit
aba9a9c277
2 changed files with 1 additions and 2 deletions
|
@ -247,6 +247,7 @@ namespace cryptonote
|
|||
//-----------------------------------------------------------------------------------
|
||||
void core::stop()
|
||||
{
|
||||
m_miner.stop();
|
||||
m_blockchain_storage.cancel();
|
||||
|
||||
tools::download_async_handle handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue