fix: is_running not initialized

new_rpc
moneroexamples 5 years ago
parent c66d9a42e4
commit b8757fd1a7

@ -20,7 +20,8 @@ CurrentBlockchainStatus::CurrentBlockchainStatus(
mcore {std::move(_mcore)},
rpc {std::move(_rpc)}
{
is_running = false;
stop_blockchain_monitor_loop = false;
}
void
@ -29,8 +30,6 @@ CurrentBlockchainStatus::monitor_blockchain()
TxSearch::set_search_thread_life(
bc_setup.search_thread_life);
stop_blockchain_monitor_loop = false;
if (!is_running)
{
is_running = true;

Loading…
Cancel
Save