Fix PONG sequence sent as separate packet causing mismatch

This commit is contained in:
savis
2025-12-28 16:57:24 +01:00
parent 387d7bf72d
commit fff15def3c
7 changed files with 15 additions and 15 deletions

View File

@@ -288,12 +288,11 @@ bool CAccountConnector::__AuthState_SendPong()
{
TPacketCGPong kPacketPong;
kPacketPong.bHeader = HEADER_CG_PONG;
kPacketPong.bSequence = GetNextSequence();
if (!Send(sizeof(kPacketPong), &kPacketPong))
return false;
if (IsSecurityMode())
return SendSequence();
return true;
}