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

Disconnect race condition #6

Closed
epenet opened this issue Apr 11, 2023 · 0 comments · Fixed by #7
Closed

Disconnect race condition #6

epenet opened this issue Apr 11, 2023 · 0 comments · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@epenet
Copy link
Contributor

epenet commented Apr 11, 2023

Describe the bug
There seems to be a race condition in the current disconnect logic.
self._is_manually_disconnecting is set to True, but when disconnected event comes through the reason is DEVICE

This results in unwanted reconnect attempts

To Reproduce
see home-assistant/core#90850

In particular https://github.com/home-assistant/core/actions/runs/4638938384/jobs/8209309875?pr=90850

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant