From c1ae17c3d2510812d0d44b4d23092f2f3fafffbc Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 17 Mar 2013 18:38:30 +0100 Subject: Add a timeout in the select() in mpd_client --- plugins/mpd_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py index 9d64f449..52bd1c17 100644 --- a/plugins/mpd_client.py +++ b/plugins/mpd_client.py @@ -31,7 +31,7 @@ class UpdateThread(threading.Thread): if password: self.c.password(password) self.c.send_idle() - select([self.c], [], []) + select([self.c], [], [], timeout=600) self.c.fetch_idle() status = self.c.status() if status['state'] == 'play' and self.alive: -- cgit v1.2.3