From: kaliko Date: Sun, 2 Feb 2014 15:24:29 +0000 (+0100) Subject: Tries to fix "RuntimeError: reentrant call inside" X-Git-Tag: mpd-sima/0.12.0pr3~13 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=c8f52517f79e544abaee94097e2205266163e602;p=mpd-sima.git Tries to fix "RuntimeError: reentrant call inside" --- 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):