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

fix: prevent premature cancellation of observerelation #192

Merged
merged 1 commit into from
May 31, 2024

Conversation

JKRhb
Copy link
Contributor

@JKRhb JKRhb commented May 27, 2024

This PR should fix #190.

I noticed that the onCancel callback that has been added to the observe method in #188 was called a bit too early to allow for the delivery of incoming responses. This PR adds a boolean variable to track if the preparation of the CoapObserveClientRelation is already done, preventing the callback from early invocation.

@shamblett shamblett merged commit 2e08045 into shamblett:master May 31, 2024
2 of 3 checks passed
@JKRhb JKRhb deleted the coap-observe-fix branch May 31, 2024 11:48
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.

Observing resources does not work anymore
2 participants