Merge pull request #82 from eboasson/master

participants are not hidden built-in entities in built-in topics and should get an instance handle consistent with the DCPSParticipant topic
This commit is contained in:
eboasson 2019-01-01 19:54:55 +01:00 committed by GitHub
commit 96da0c5555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;