Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
  • Loading branch information
caguero committed Jan 18, 2024
1 parent 8d98c43 commit 16c3300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/gz/transport/Discovery.hh
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ namespace gz
return false;
}

this->connectionCb(_publisher);
if (this->connectionCb)
this->connectionCb(_publisher);

// Only advertise a message outside this process if the scope
// is not 'Process'
Expand Down

0 comments on commit 16c3300

Please sign in to comment.