X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Fclient.py;h=6cd3802396688a01bc683318815d5e40aedb6a54;hb=deb847c3dbc3bec518f4edd414039098c8d04f3e;hp=f1d2b8f2cde6e68e8669bcdac4876324fe674c5f;hpb=9ec2e9036e1f0fe67e8ddd7e8fb7f91a2e86cd62;p=mpd-sima.git diff --git a/sima/client.py b/sima/client.py index f1d2b8f..6cd3802 100644 --- a/sima/client.py +++ b/sima/client.py @@ -329,6 +329,7 @@ class PlayerClient(Player): def disconnect(self): # Try to tell MPD we're closing the connection first try: + self._client.noidle() self._client.close() # If that fails, don't worry, just ignore it and disconnect except (MPDError, IOError):