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 Jan 31, 2024
1 parent 1d9651a commit 9517a8c
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 9517a8c

Please sign in to comment.