mirror of
https://github.com/oe7drt/YSFClients.git
synced 2025-12-06 05:32:02 +01:00
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:
parent
d583357cab
commit
c260e55680
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue