diff options
author | mathieui <mathieui@mathieui.net> | 2013-03-17 18:38:30 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-03-17 18:42:33 +0100 |
commit | c1ae17c3d2510812d0d44b4d23092f2f3fafffbc (patch) | |
tree | c02fda0c753ea8ff5318047b7529bc1792378d51 | |
parent | bbe041fd58812e237f38cc0a202423f5f4d9957f (diff) | |
download | poezio-c1ae17c3d2510812d0d44b4d23092f2f3fafffbc.tar.gz poezio-c1ae17c3d2510812d0d44b4d23092f2f3fafffbc.tar.bz2 poezio-c1ae17c3d2510812d0d44b4d23092f2f3fafffbc.tar.xz poezio-c1ae17c3d2510812d0d44b4d23092f2f3fafffbc.zip |
Add a timeout in the select() in mpd_client
-rw-r--r-- | plugins/mpd_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |