Merge pull request #332 from MW0MWZ/master

Match YSFGateway state with Radio State
This commit is contained in:
Jonathan Naylor 2025-05-22 10:40:19 +01:00 committed by GitHub
commit 00873b6cea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;