summaryrefslogtreecommitdiff
path: root/client/modules
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-01 14:57:40 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-01 14:57:40 +0200
commit32388e79b28f4f0c929bbf9200d4ba96b23526ff (patch)
treee999f0206de8514e37e2a29528d5da54ed10d043 /client/modules
parentfe42407497f4f3dcc1388f2e9da53dd64ccf6382 (diff)
downloadjasper-client-32388e79b28f4f0c929bbf9200d4ba96b23526ff.tar.gz
jasper-client-32388e79b28f4f0c929bbf9200d4ba96b23526ff.zip
Only look for 'close' if activeListen returned something
Diffstat (limited to 'client/modules')
-rw-r--r--client/modules/MPDControl.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/modules/MPDControl.py b/client/modules/MPDControl.py
index 7d79174..6e8e438 100644
--- a/client/modules/MPDControl.py
+++ b/client/modules/MPDControl.py
@@ -186,11 +186,10 @@ class MusicMode(object):
input = self.mic.activeListen(MUSIC=True)
- if "close" in input.lower():
- self.mic.say("Closing Spotify")
- return
-
if input:
+ if "close" in input.lower():
+ self.mic.say("Closing Spotify")
+ return
self.delegateInput(input)
else:
self.mic.say("Pardon?")