From: gg Date: Thu, 15 Jan 2026 12:03:18 +0000 (-0500) Subject: fix autoConnect() spam/fail bug X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=c69ec0ed14cc18a30fb48ff41620213734f0c3b2;p=gamesguru%2Ffeather.git fix autoConnect() spam/fail bug --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index b0db7d49..ec6cc027 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -661,7 +661,13 @@ void MainWindow::initWalletContext() { connect(m_wallet, &Wallet::connectionStatusChanged, [this](int status){ // Order is important, first inform UI about a potential disconnect, then reconnect this->onConnectionStatusChanged(status); - m_nodes->autoConnect(); + + if (status == Wallet::ConnectionStatus_Disconnected) { + QTimer::singleShot(2000, m_nodes, [this]{ m_nodes->autoConnect(); }); + } else { + m_nodes->autoConnect(); + } + this->updateBalance(); });