Skip to content

Commit

Permalink
Set session as ending as soon as session is ending
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychokiller1888 committed Apr 16, 2023
1 parent c10ccd2 commit 8c64145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dialog/DialogManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@ def onContinueSession(self, session: DialogSession):
def onEndSession(self, session: DialogSession, reason: str = 'nominal'):
self.cancelSessionTimeout(sessionId=session.sessionId)
self.enableCaptureFeedback()

session.isEnding = True
text = session.payload.get('text', '')

if text:
session.isEnding = True

self.MqttManager.publish(
topic=constants.TOPIC_TTS_SAY,
payload={
Expand Down

0 comments on commit 8c64145

Please sign in to comment.