From 32388e79b28f4f0c929bbf9200d4ba96b23526ff Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 1 Oct 2014 14:57:40 +0200 Subject: Only look for 'close' if activeListen returned something --- client/modules/MPDControl.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'client') 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?") -- cgit v1.3.1