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

[MQTT] clearly set null when closing connection #198

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

jaeyun-jung
Copy link
Collaborator

Clearly set connection state and handle when closing MQTT connection.

Clearly set connection state and handle when closing MQTT connection.

Signed-off-by: Jaeyun Jung <[email protected]>
@taos-ci
Copy link
Collaborator

taos-ci commented Feb 5, 2024

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #198. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@jaeyun-jung, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Contributor

@songgot songgot left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@gichan-jang gichan-jang left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -258,6 +258,8 @@ nns_edge_mqtt_close (nns_edge_broker_h broker_h)
MQTTAsync_destroy (&handle);
}

bh->mqtt_h = NULL;
Copy link
Member

Choose a reason for hiding this comment

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

What about bh->connected ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The struct for paho-mqtt does not contain connected flag.

@myungjoo myungjoo merged commit 0085b9d into nnstreamer:main Feb 23, 2024
28 checks passed
@jaeyun-jung jaeyun-jung deleted the codeclean-conn-state branch February 23, 2024 07:07
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.

5 participants