participants are not hidden built-in entities in built-in topics and should get an instance handle consistent with the DCPSParticipant topic

Signed-off-by: Erik Boasson <erik.boasson@prismtech.com>
This commit is contained in:
Erik Boasson 2019-01-01 18:27:04 +01:00
parent 46b1aa5366
commit 781c644800

View file

@ -161,7 +161,7 @@ static void entity_common_init (struct entity_common *e, const struct nn_guid *g
e->name = os_strdup (name ? name : ""); e->name = os_strdup (name ? name : "");
e->onlylocal = onlylocal; e->onlylocal = onlylocal;
os_mutexInit (&e->lock); os_mutexInit (&e->lock);
if (onlylocal || is_builtin_entityid (guid->entityid, vendorid)) if (onlylocal || is_builtin_endpoint (guid->entityid, vendorid))
{ {
e->iid = ddsi_iid_gen (); e->iid = ddsi_iid_gen ();
*tk = NULL; *tk = NULL;