Fixed `get_miner_data` error handling

Second call was a no-op because of `m_getMinerDataPending`
pull/271/head
SChernykh 2023-06-10 14:49:33 +02:00
parent 143960937e
commit 47c79459a6
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}