From c260e55680c4d2c015f7c59f14256fd3fc33b668 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 22 May 2025 00:37:14 +0100 Subject: [PATCH] Match YSFGateway state with Radio State - when the radio is told the connection failed, it assumes there is no connection, so YSFGateway should drop the active reflector connection --- YSFGateway/WiresX.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/YSFGateway/WiresX.cpp b/YSFGateway/WiresX.cpp index b49f77b..53e9aa7 100644 --- a/YSFGateway/WiresX.cpp +++ b/YSFGateway/WiresX.cpp @@ -376,8 +376,11 @@ WX_STATUS CWiresX::processConnect(const unsigned char* source, const unsigned ch m_reflector = m_reflectors.findById(id); if (m_reflector == nullptr) { + if(source != nullptr) + processDisconnect(source); sendConnectFailedReply(); - return WX_STATUS::NONE; + // Keep state on Radio matched with YSFGateway + return WX_STATUS::DISCONNECT; } m_status = WXSI_STATUS::CONNECT;