Skip to content

Commit 9ad3933

Browse files
committed
fixed:get online user is incorrect when publish message
1 parent 1d9795c commit 9ad3933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/XEngine_MQServiceApp/MQService_TCPTask.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ bool MessageQueue_TCP_Handle(XENGINE_PROTOCOLHDR* pSt_ProtocolHdr, LPCXSTR lpszC
453453

454454
pSt_ProtocolHdr->unOperatorCode = XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_MQ_MSGNOTIFY;
455455
//只有在线用户才需要即时通知
456-
if (SessionModule_Client_GetExist(NULL, tszUserName))
456+
if (SessionModule_Client_GetExist(NULL, ppSt_ListUser[i]->tszUserName))
457457
{
458458
//如果发送指定用户被指定.
459459
if ((_tcsxlen(st_MQProtocol.tszMQUsr) > 0) && (0 != _tcsxnicmp(st_MQProtocol.tszMQUsr, tszUserName, _tcsxlen(st_MQProtocol.tszMQUsr))))

0 commit comments

Comments
 (0)