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

This commit is contained in:
root 2025-05-22 00:37:14 +01:00
parent d583357cab
commit c260e55680

View file

@ -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;