Skip to content

Commit

Permalink
Remove redundant await when canceling task
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin committed Oct 8, 2024
1 parent 644ac38 commit ec16be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routers/transcribe_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ async def create_memory_creation_task():
nonlocal memory_creation_task

if memory_creation_task is not None:
await memory_creation_task.cancel()
memory_creation_task.cancel()
try:
await memory_creation_task
except asyncio.CancelledError:
Expand Down

0 comments on commit ec16be7

Please sign in to comment.