Skip to content

Commit

Permalink
ovos_bus_client~=0.0,>=0.0.6a8
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 29, 2023
1 parent 46d9db8 commit afdaaa7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,16 @@ def handle_utterance(self, message):

stopwatch = Stopwatch()

# get session
sess = SessionManager.get(message)
if sess.session_id == "default":
# Default session, check if it needs to be (re)-created
if sess.expired():
sess = SessionManager.reset_default_session()
sess.lang = lang

# match
match = None
sess = SessionManager.get(message)
with stopwatch:
# Loop through the matching functions until a match is found.
for match_func in self.get_pipeline(session=sess):
Expand Down Expand Up @@ -310,7 +317,8 @@ def handle_utterance(self, message):
self.send_complete_intent_failure(message)

# sync any changes made to the default session, eg by ConverseService
SessionManager.sync()
if sess.session_id == "default":
SessionManager.sync()
return match, message.context, stopwatch

except Exception as err:
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ combo-lock>=0.2.2, <0.3
padacioso~=0.2, >=0.2.1a8
adapt-parser>=1.0.0, <2.0.0

ovos_bus_client~=0.0,>=0.0.6a7

ovos-utils<0.1.0, >=0.0.35a7
ovos-plugin-manager<0.1.0, >=0.0.24a5
ovos-config~=0.0,>=0.0.11a9
Expand Down

0 comments on commit afdaaa7

Please sign in to comment.