diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 14:57:40 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-01 14:57:40 +0200 |
| commit | 32388e79b28f4f0c929bbf9200d4ba96b23526ff (patch) | |
| tree | e999f0206de8514e37e2a29528d5da54ed10d043 /client/modules/MPDControl.py | |
| parent | fe42407497f4f3dcc1388f2e9da53dd64ccf6382 (diff) | |
| download | jasper-client-32388e79b28f4f0c929bbf9200d4ba96b23526ff.tar.gz jasper-client-32388e79b28f4f0c929bbf9200d4ba96b23526ff.zip | |
Only look for 'close' if activeListen returned something
Diffstat (limited to 'client/modules/MPDControl.py')
| -rw-r--r-- | client/modules/MPDControl.py | 7 |
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?") |
