Skip to content

Commit

Permalink
Fix response listener registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc authored and gregmedd committed Aug 13, 2024
1 parent 88cc7d1 commit 0a50873
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 @@ -379,9 +379,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 0a50873

Please sign in to comment.