Skip to content

Commit

Permalink
fix: fix a bug that will cause error led state when we try to listen(…
Browse files Browse the repository at this point in the history
…) at 'on_speaking' state
  • Loading branch information
jerryyip committed Dec 3, 2018
1 parent 00b3374 commit fc47209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion avs/interface/speech_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def SpeechFinished(self):
self.finished.set()
self._state = 'FINISHED'

self.alexa.state_listener.on_finished()
# repeated operation, will cause bug when we try to listen() at 'on_speaking' state
# self.alexa.state_listener.on_finished()

if self.alexa.AudioPlayer.state == 'PAUSED':
self.alexa.AudioPlayer.resume()
Expand Down

0 comments on commit fc47209

Please sign in to comment.