mirror of
https://github.com/oe7drt/YSFClients.git
synced 2025-12-06 05:32:02 +01:00
Merge pull request #332 from MW0MWZ/master
Match YSFGateway state with Radio State
This commit is contained in:
commit
00873b6cea
|
|
@ -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