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

client._connected does not reflect the transport state #53

Closed
miili opened this issue Aug 1, 2019 · 1 comment
Closed

client._connected does not reflect the transport state #53

miili opened this issue Aug 1, 2019 · 1 comment

Comments

@miili
Copy link

miili commented Aug 1, 2019

A disconnect does not clear the event.

The actual state is reflected by

connection_state = self._connected.is_set() & ~self._connection.is_closing()
@miili miili changed the title _connected does not reflect the transport state client._connected does not reflect the transport state Aug 1, 2019
@Lenka42
Copy link
Collaborator

Lenka42 commented Aug 13, 2019

@miili
Now Client has is_connected property which depends on both _connected event and transport state

@Lenka42 Lenka42 closed this as completed Aug 13, 2019
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

2 participants