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 bug in mqttCallback UNSUBSCRIBE #17

Merged
merged 7 commits into from
Feb 7, 2024
Merged

Fix bug in mqttCallback UNSUBSCRIBE #17

merged 7 commits into from
Feb 7, 2024

Conversation

PaulZC
Copy link
Contributor

@PaulZC PaulZC commented Feb 7, 2024

Hi Michael (@mazgch ),

I found a small bug in LTE mqttCallback: the unsubTopic is erased if not in the list. Inverting the logic fixes it.

Very best wishes,
Paul

@mazgch
Copy link
Owner

mazgch commented Feb 7, 2024

Thanks nice catch. I was just wondering why I don't have the same in the subscribe case. I think I added the find and pos check at a late stage as there was a possibliliy of unsubscrible URCs due to strange conditions like unexpected reset from external.

@mazgch mazgch merged commit b62fed2 into mazgch:main Feb 7, 2024
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.

2 participants