summaryrefslogtreecommitdiff
path: root/plugins/mpd_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mpd_client.py')
-rw-r--r--plugins/mpd_client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py
index a7064e09..ae98b41b 100644
--- a/plugins/mpd_client.py
+++ b/plugins/mpd_client.py
@@ -38,6 +38,8 @@ class UpdateThread(threading.Thread):
self.xmpp.plugin['xep_0118'].publish_tune(artist=song.get('artist'),
length=song.get('time'), title=song.get('title'),
track=song.get('track'), block=False)
+ else if status['state'] != 'play':
+ self.xmpp.plugin['xep_0118'].stop(block=False)
self.c.disconnect()
except:
pass