From: gg Date: Thu, 15 Jan 2026 13:49:37 +0000 (-0500) Subject: fix data race/logic bug with refresh interval X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=c7e06461624a0b1b2fe30f88c2b89751918be7cc;p=gamesguru%2Ffeather.git fix data race/logic bug with refresh interval --- diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index b8fbed38..0927be53 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -506,6 +506,7 @@ void Wallet::startRefreshThread() const auto elapsed = now - last; if (elapsed >= std::chrono::seconds(m_refreshInterval) || m_refreshNow) { + m_refreshNow = false; auto loopStartTime = std::chrono::time_point_cast(std::chrono::steady_clock::now()); // get daemonHeight and targetHeight // daemonHeight and targetHeight will be 0 if call to get_info fails