mamantoha/mpd_client — pull request #4 by pizzocel (2014-12-06 13:27:21+00:00)
Title: Automatic reconnect after the server dropped the connection.

The MPD server always drops connections after some time. Calling an MPD command thereafter used to cause an error to be raised. With this patch the error is caught and the connection is reestablished and the command is resent. So it appears as if the connection had not been dropped.