Fixed a bug.
This commit is contained in:
@@ -232,19 +232,21 @@ void _distributeMsg(AQH_MSG_ENDPOINT_MGR *emgr, AQH_MSG_ENDPOINT *srcEp, const A
|
|||||||
|
|
||||||
ep=AQH_MsgEndpoint_List_First(emgr->endpointList);
|
ep=AQH_MsgEndpoint_List_First(emgr->endpointList);
|
||||||
while(ep) {
|
while(ep) {
|
||||||
uint32_t acceptedGroupIds;
|
if (ep!=srcEp) {
|
||||||
uint32_t acceptedMsgGroups;
|
uint32_t acceptedGroupIds;
|
||||||
|
uint32_t acceptedMsgGroups;
|
||||||
|
|
||||||
acceptedGroupIds=AQH_MsgEndpoint_GetAcceptedMsgGroups(ep);
|
acceptedGroupIds=AQH_MsgEndpoint_GetAcceptedMsgGroups(ep);
|
||||||
acceptedMsgGroups=AQH_MsgEndpoint_GetAcceptedMsgGroups(ep);
|
acceptedMsgGroups=AQH_MsgEndpoint_GetAcceptedMsgGroups(ep);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!(AQH_MsgEndpoint_GetFlags(ep) & AQH_MSG_ENDPOINT_FLAGS_NOMESSAGES) &&
|
!(AQH_MsgEndpoint_GetFlags(ep) & AQH_MSG_ENDPOINT_FLAGS_NOMESSAGES) &&
|
||||||
(acceptedMsgGroups & msgGroup) &&
|
(acceptedMsgGroups & msgGroup) &&
|
||||||
(acceptedGroupIds & srcGroupId)
|
(acceptedGroupIds & srcGroupId)
|
||||||
) {
|
) {
|
||||||
/* endpoint accepts this message */
|
/* endpoint accepts this message */
|
||||||
AQH_MsgEndpoint_AddSendMessage(ep, AQH_Msg_dup(msg));
|
AQH_MsgEndpoint_AddSendMessage(ep, AQH_Msg_dup(msg));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ep=AQH_MsgEndpoint_List_Next(ep);
|
ep=AQH_MsgEndpoint_List_Next(ep);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user