mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:58:52 +00:00
Merge pull request #4923
aba9a9c2
daemon: stop miner before we bring the whole thing down (moneromooo-monero)
This commit is contained in:
commit
fe3c8c9682
@ -250,6 +250,7 @@ namespace cryptonote
|
||||
//-----------------------------------------------------------------------------------
|
||||
void core::stop()
|
||||
{
|
||||
m_miner.stop();
|
||||
m_blockchain_storage.cancel();
|
||||
|
||||
tools::download_async_handle handle;
|
||||
|
@ -195,7 +195,6 @@ bool t_daemon::run(bool interactive)
|
||||
|
||||
for(auto& rpc : mp_internals->rpcs)
|
||||
rpc->stop();
|
||||
mp_internals->core.get().get_miner().stop();
|
||||
MGINFO("Node stopped.");
|
||||
return true;
|
||||
}
|
||||
@ -217,7 +216,6 @@ void t_daemon::stop()
|
||||
{
|
||||
throw std::runtime_error{"Can't stop stopped daemon"};
|
||||
}
|
||||
mp_internals->core.get().get_miner().stop();
|
||||
mp_internals->p2p.stop();
|
||||
for(auto& rpc : mp_internals->rpcs)
|
||||
rpc->stop();
|
||||
|
Loading…
Reference in New Issue
Block a user