Skip to content

Commit

Permalink
JSON RPC API: stop polling when shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
SChernykh committed Jul 23, 2024
1 parent 0bada79 commit b01ba2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/merge_mining_client_json_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ MergeMiningClientJSON_RPC::~MergeMiningClientJSON_RPC()

void MergeMiningClientJSON_RPC::on_timer()
{
if (m_pool->stopped()) {
return;
}

MinerData data = m_pool->miner_data();
merge_mining_get_aux_block(data.height, data.prev_id, m_auxWallet);
}
Expand Down

0 comments on commit b01ba2e

Please sign in to comment.