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

remove unused, undocumented "disconnected" property from MqttClient #690

Closed
wants to merge 1 commit into from

Conversation

boneskull
Copy link
Contributor

@boneskull boneskull commented Oct 3, 2017

While probing around for the root cause of another bug, I discovered the disconnected property, which is incongruous with the documented connected, and also seemingly unnecessary.

Prior to this change, situation arises where the connected property is true even if a call to end() has completed, which seems incorrect. This may be the source of my bug, but haven't tested yet 😄

The changes below don't seem to affect the test outcomes, since the disconnected property is not referenced anywhere other than the two places seen in this diff.

@mcollina
Copy link
Member

mcollina commented Oct 6, 2017

Tests are failing on CI, are they related?

@boneskull
Copy link
Contributor Author

don’t believe so; I’m experiencing a lot of random flake running the tests.

@boneskull
Copy link
Contributor Author

I think a proper finite state machine might be a good idea.

@mcollina
Copy link
Member

mcollina commented Oct 7, 2017

Definitely.

@boneskull
Copy link
Contributor Author

I'm gonna withdraw this then

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