]> kaliko git repositories - mpd-sima.git/commitdiff
Tries to fix "RuntimeError: reentrant call inside"
authorkaliko <efrim@azylum.org>
Sun, 2 Feb 2014 15:24:29 +0000 (16:24 +0100)
committerkaliko <efrim@azylum.org>
Sun, 2 Feb 2014 15:24:29 +0000 (16:24 +0100)
sima/client.py

index f1d2b8f2cde6e68e8669bcdac4876324fe674c5f..6cd3802396688a01bc683318815d5e40aedb6a54 100644 (file)
@@ -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):