Mic92 / python-mpd2

Python library which provides a client interface for the Music Player Daemon.
GNU Lesser General Public License v3.0
352 stars 119 forks source link

async: Tolerate early disconnects #158

Closed chrysn closed 3 years ago

chrysn commented 3 years ago

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: https://github.com/Mic92/python-mpd2/issues/157