Skip to content

Commit afdbbf8

Browse files
committed
Fix the show typing activity bug
1 parent 3190afb commit afdbbf8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: libraries/botbuilder-core/botbuilder/core/show_typing_middleware.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,10 @@ def stop_interval():
9393
):
9494
start_interval(context, self._delay, self._period)
9595

96-
# call the bot logic
97-
result = await logic()
98-
99-
stop_interval()
100-
101-
return result
96+
try:
97+
return await logic()
98+
finally:
99+
stop_interval()
102100

103101
@staticmethod
104102
def _is_skill_bot(context: TurnContext) -> bool:

0 commit comments

Comments
 (0)