mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
JSON RPC API: stop polling when shutting down
This commit is contained in:
parent
0bada79b6b
commit
b01ba2e116
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ MergeMiningClientJSON_RPC::~MergeMiningClientJSON_RPC()
|
||||||
|
|
||||||
void MergeMiningClientJSON_RPC::on_timer()
|
void MergeMiningClientJSON_RPC::on_timer()
|
||||||
{
|
{
|
||||||
|
if (m_pool->stopped()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
MinerData data = m_pool->miner_data();
|
MinerData data = m_pool->miner_data();
|
||||||
merge_mining_get_aux_block(data.height, data.prev_id, m_auxWallet);
|
merge_mining_get_aux_block(data.height, data.prev_id, m_auxWallet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue