Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit f356dc0

Browse files
committed
Fix aux_func to use await.
1 parent 10d8825 commit f356dc0

File tree

1 file changed

+2
-1
lines changed
  • samples/python-flask/13.core-bot

1 file changed

+2
-1
lines changed

samples/python-flask/13.core-bot/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def messages():
4646
auth_header = request.headers['Authorization'] if 'Authorization' in request.headers else ''
4747

4848
async def aux_func(turn_context):
49-
asyncio.ensure_future(BOT.on_turn(turn_context))
49+
await BOT.on_turn(turn_context)
50+
5051
try:
5152
task = LOOP.create_task(ADAPTER.process_activity(activity, auth_header, aux_func))
5253
LOOP.run_until_complete(task)

0 commit comments

Comments
 (0)