From 47c79459a67bbedf857b962953c179671e034b3c Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 10 Jun 2023 14:49:33 +0200 Subject: [PATCH] Fixed `get_miner_data` error handling Second call was a no-op because of `m_getMinerDataPending` --- src/p2pool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p2pool.cpp b/src/p2pool.cpp index 6c5de2e..90910d2 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -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(); } }