Skip to content

Commit

Permalink
Fix response listener registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Aug 6, 2024
1 parent 7ad2253 commit 7ada287
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ZenohUTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,15 @@ v1::UStatus ZenohUTransport::registerListenerImpl(
// We can't use the UUri validators to determine what mode they
// are for because a) there is overlap in allowed values between
// modes and b) any filter is allowed to have wildcards present.
registerResponseListener_(zenoh_key, listener);
registerRequestListener_(zenoh_key, listener);
registerPublishNotificationListener_(zenoh_key, listener);

if (sink_filter.has_value()) {
// zenoh_key for response listener should be in revert order
std::string zenoh_response_key = toZenohKeyString(
getEntityUri().authority_name(), *sink_filter, source_filter);
registerResponseListener_(zenoh_response_key, listener);
}
}

v1::UStatus status;
Expand Down

0 comments on commit 7ada287

Please sign in to comment.