From c69ec0ed14cc18a30fb48ff41620213734f0c3b2 Mon Sep 17 00:00:00 2001 From: gg Date: Thu, 15 Jan 2026 07:03:18 -0500 Subject: [PATCH] fix autoConnect() spam/fail bug --- src/MainWindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); }); -- 2.52.0