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

async: Tolerate early disconnects #158

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

chrysn
Copy link
Contributor

@chrysn chrysn commented Jan 14, 2021

The typing was added anticipating 145, and can be removed if that's
not going anywhere; more important was documenting the variable (even
though it's internal), and making sure it's only accessed in ways that
tolerate double disconnects (eg. due to a network disconnect racing
against a user disconnect, or because something disconnects just to be
sure).

Closes: #157

The typing was added anticipating [145], and can be removed if that's
not going anywhere; more important was documenting the variable (even
though it's internal), and making sure it's only accessed in ways that
tolerate double disconnects (eg. due to a network disconnect racing
against a user disconnect, or because something disconnects just to be
sure).

Closes: Mic92#157

[145]: https://github.com/Mic92/python-mpd2/pull/145/files
Copy link
Collaborator

@mweinelt mweinelt left a comment

Choose a reason for hiding this comment

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

Awesome, that makes the home-assistant component work!

@Mic92 Mic92 merged commit f215ea5 into Mic92:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants