mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +00:00
Fixed get_miner_data
error handling
Second call was a no-op because of `m_getMinerDataPending`
This commit is contained in:
parent
143960937e
commit
47c79459a6
1 changed files with 1 additions and 0 deletions
|
@ -1065,6 +1065,7 @@ void p2pool::get_miner_data()
|
|||
LOGWARN(1, "get_miner_data RPC request failed: error " << log::const_buf(data, size) << ", trying again in 1 second");
|
||||
if (!m_stopped) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
m_getMinerDataPending = false;
|
||||
get_miner_data();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue