Skip to content

Commit

Permalink
Return if audio is None in listener
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewScholefield committed Oct 17, 2017
1 parent e1b4ad0 commit 2177270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mycroft/client/speech/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def read(self):
except Empty:
return

if audio is None:
return

if self.state.sleeping:
self.wake_up(audio)
else:
Expand Down

0 comments on commit 2177270

Please sign in to comment.