1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2026-07-25 11:34:11 -04:00

version 1.2.2

Corrected keep alive timeout issue when multi-module repeater linked
This commit is contained in:
LX3JL
2016-02-08 22:55:47 +01:00
parent f66eef9a44
commit 5599420d92
6 changed files with 53 additions and 27 deletions
+7 -7
View File
@@ -139,15 +139,15 @@ void CDextraProtocol::Task(void)
}
else if ( IsValidKeepAlivePacket(Buffer, &Callsign) )
{
//std::cout << "DExtra keepalive packet from " << Callsign << " at " << Ip << std::endl;
//std::cout << "DExtra keepalive packet from " << Callsign << " at " << Ip << std::endl;
// find client & keep it alive
CClient *GetClient(const CCallsign &, const CIp &, char, int);
CClient *client = g_Reflector.GetClients()->FindClient(Callsign, Ip, PROTOCOL_DEXTRA);
if ( client != NULL )
// find all clients with that callsign & ip and keep them alive
CClients *clients = g_Reflector.GetClients();
int index = -1;
CClient *client = NULL;
while ( (client = clients->FindNextClient(Callsign, Ip, PROTOCOL_DEXTRA, &index)) != NULL )
{
client->Alive();
client->Alive();
}
g_Reflector.ReleaseClients();
}