Skip to content

Commit

Permalink
Fix typo preventing setting of user callbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Feb 8, 2024
1 parent 9c79e5a commit ab592b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_data_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void EventsBase::set_user_callback(
{
std::lock_guard<std::recursive_mutex> lock_mutex(event_mutex_);

if (callback_) {
if (callback) {
// Push events arrived before setting the the executor callback.
if (unread_count_) {
callback(user_data, unread_count_);
Expand Down

0 comments on commit ab592b8

Please sign in to comment.