From 17fae1d4618a6f5f965477aa4c79bc50dfeae914 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Fri, 5 Apr 2024 20:35:19 -0400 Subject: [PATCH] fix issue where the timeout timer wasn't running for the network which would never cause the connection to reset after a number of error attempts trying to login to the master; --- src/host/network/Network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/network/Network.cpp b/src/host/network/Network.cpp index ee68dd11..f2228a05 100644 --- a/src/host/network/Network.cpp +++ b/src/host/network/Network.cpp @@ -626,6 +626,7 @@ void Network::clock(uint32_t ms) if (m_retryTimer.isRunning() && m_retryTimer.hasExpired()) { switch (m_status) { case NET_STAT_WAITING_LOGIN: + LogError(LOG_NET, "PEER %u, retrying master login, remotePeerId = %u", m_peerId, m_remotePeerId); writeLogin(); break; case NET_STAT_WAITING_AUTHORISATION: @@ -669,7 +670,7 @@ bool Network::open() } m_status = NET_STAT_WAITING_CONNECT; - m_timeoutTimer.stop(); + m_timeoutTimer.start(); m_retryTimer.start(); return true;