Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call callbacks only if unread count > 0 #634

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

mauropasse
Copy link
Contributor

Listener callbacks for QoS events were being called when assigned.

They should be called here only if there were previous events before setting these callbacks.

This PR checks the total_count_change for each event, and if greater than zero, call the corresponding callback.

Signed-off-by: Mauro Passerino mpasserino@irobot.com

Copy link
Contributor

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but linter errors should be fixed first.

Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fujitatomoya
Copy link
Collaborator

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor

Green CI and approved, so merging.

@clalancette clalancette merged commit 972167c into ros2:rolling Sep 28, 2022
@fujitatomoya
Copy link
Collaborator

@Mergifyio backport humble

mergify bot pushed a commit that referenced this pull request Sep 28, 2022
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
(cherry picked from commit 972167c)
@mergify
Copy link

mergify bot commented Sep 28, 2022

backport humble

✅ Backports have been created

@mauropasse mauropasse deleted the mauro/rolling-fixes branch September 30, 2022 13:52
fujitatomoya pushed a commit that referenced this pull request Sep 1, 2023
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
(cherry picked from commit 972167c)
fujitatomoya pushed a commit that referenced this pull request Sep 4, 2023
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
(cherry picked from commit 972167c)

Co-authored-by: mauropasse <mauropasse@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants