Skip to content

Commit 8fea01f

Browse files
committed
fixed:thread recv timeout for authorize
1 parent 6cc1517 commit 8fea01f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

XEngine_Module/XEngine_Verification/Verification_XAuth/Verification_XAuthNet.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,11 @@ XHTHREAD XCALLBACK CVerification_XAuthNet::Verification_XAuthNet_Thread(XPVOID l
11071107

11081108
if (!XClient_TCPSelect_RecvPkt(pClass_This->m_hSocket, &ptszMsgBuffer, &nMsgLen, &st_ProtocolHdr))
11091109
{
1110+
XLONG dwRet = XClient_GetLastError();
1111+
if (ERROR_XCLIENT_SOCKET_TCPSOCKET_SELECT_RECVPKT_TIMEOUT == dwRet)
1112+
{
1113+
continue;
1114+
}
11101115
pClass_This->m_bRun = false;
11111116
pClass_This->m_bLogin = false;
11121117
pClass_This->m_bAuth = false;

0 commit comments

Comments
 (0)