Commit f11c15c0 authored by mathieui's avatar mathieui

Stop broadcasting a tune if we are not playing (#1840)

parent 4deee7cb
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment