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 duplicated onConnectionSuccess and onConnectionFailure calls #758

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

sfod
Copy link
Contributor

@sfod sfod commented Feb 7, 2024

Do not call onConnectionSuccess and onConnectionFailure callbacks for the on_connection_complete event as they are called for connection success and connection failure events respectively.

Also, register on_connection_success and on_connection_failure events for mqtt5to3 adapter.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sfod sfod changed the title Fix duplicated onConnectionSuccess and onConenctionFailure calls Fix duplicated onConnectionSuccess and onConnectionFailure calls Feb 7, 2024
@sfod sfod marked this pull request as draft February 7, 2024 01:00
@sfod sfod marked this pull request as ready for review February 7, 2024 20:11
Copy link
Contributor

@xiazhvera xiazhvera left a comment

Choose a reason for hiding this comment

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

Nice catch on the callback on newFrom5Client.

@sfod sfod merged commit 7126375 into main Feb 8, 2024
40 checks passed
@sfod sfod deleted the fix-duplicated-on-connection-cb branch February 8, 2024 23:39
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.

3 participants