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

Legato client clean up - following Legato client app stop #3

Open
johnofleek opened this issue Apr 14, 2016 · 0 comments
Open

Legato client clean up - following Legato client app stop #3

johnofleek opened this issue Apr 14, 2016 · 0 comments

Comments

@johnofleek
Copy link

I noticed that when a simple legatoClient app is mqtt connected to the mqttClient and the user manually stops the legatoClient app. The next time the legatoClient app starts it fails with
"mqtt disconnected: err:1 subErr:-1"

A work around is to mqtt_Disconnect() at the start of legatoClient. I will add a SIGTERM handler to mqtt_Disconnect() which is probably a better workaround.

But maybe mqttClient could detect legatoClient closing and clean up ?

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

No branches or pull requests

1 participant