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

[SL-UP] Remove the ActiveSubscription flag when the ReadHandler is being destroyed #134

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

mkardous-silabs
Copy link
Contributor

Description

When the OnSubscriptionTerminated callback is called, the readhandler that is being destroyed is still marked as active even if the destructor has been called.

Due to this, if we want to check the state of the different subscription for the fabric, the readhandler that is being destroyed skews the results since it is marked as active.

PR removes the ActiveSubscription flag before calling the OnSubscriptionTerminated to avoid having false positives when checking for active subscriptions on the fabric afterwards. This also prevents the OnSubscriptionTerminated to be called twice if for some reason the destructor is called twice we shouldn't happen.

Tests

CI

@mkardous-silabs mkardous-silabs added the sl-up This TAG indicates that this commit needs to be upstreamed to CSA before its next release. label Nov 26, 2024
@mkardous-silabs mkardous-silabs requested a review from a team as a code owner November 26, 2024 18:01
@mkardous-silabs mkardous-silabs merged commit 83d9db2 into release_2.5-1.4 Nov 27, 2024
11 of 12 checks passed
@mkardous-silabs mkardous-silabs deleted the sl-up/readhandler_state_fix branch November 27, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sl-up This TAG indicates that this commit needs to be upstreamed to CSA before its next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants