From c8f52517f79e544abaee94097e2205266163e602 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 2 Feb 2014 16:24:29 +0100 Subject: [PATCH] Tries to fix "RuntimeError: reentrant call inside" --- sima/client.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.39.5