checking origin of intra-process msg before taking them (#753)
Signed-off-by: alberto <alberto.soragna@gmail.com>
This commit is contained in:
parent
24080a458d
commit
4532d9cf78
1 changed files with 7 additions and 0 deletions
|
@ -170,6 +170,13 @@ public:
|
||||||
// However, this can only really happen if this node has it disabled, but the other doesn't.
|
// However, this can only really happen if this node has it disabled, but the other doesn't.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!matches_any_intra_process_publishers(&message_info.publisher_gid)) {
|
||||||
|
// This intra-process message has not been created by a publisher from this context.
|
||||||
|
// we should ignore this copy of the message.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (any_callback_.use_take_shared_method()) {
|
if (any_callback_.use_take_shared_method()) {
|
||||||
ConstMessageSharedPtr msg;
|
ConstMessageSharedPtr msg;
|
||||||
take_intra_process_message(
|
take_intra_process_message(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue