Skip to content

Commit

Permalink
Updated Zenoh subscriber declaration to undeclare subscribers when re…
Browse files Browse the repository at this point in the history
…ferences are dropped. (#356)
  • Loading branch information
gmartin82 authored Oct 2, 2024
1 parent ada24f8 commit 3701bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zenoh-plugin-dds/src/route_zenoh_dds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl RouteZenohDDS<'_> {
.zsession
.declare_subscriber(ke.clone())
.callback(subscriber_callback)
.undeclare_on_drop(true)
.allowed_origin(Locality::Remote) // Allow only remote publications to avoid loops
.querying()
.query_timeout(plugin.config.queries_timeout)
Expand All @@ -203,6 +204,7 @@ impl RouteZenohDDS<'_> {
.zsession
.declare_subscriber(ke.clone())
.callback(subscriber_callback)
.undeclare_on_drop(true)
.allowed_origin(Locality::Remote) // Allow only remote publications to avoid loops
.await
.map_err(|e| {
Expand Down

0 comments on commit 3701bf3

Please sign in to comment.