From a181e013107629770e6583018116bd3c183b18cb Mon Sep 17 00:00:00 2001 From: Om Chauhan Date: Mon, 29 Dec 2025 07:46:15 +0530 Subject: [PATCH] fixed: create_task to return coroutine result --- src/pipecat/utils/asyncio/task_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/utils/asyncio/task_manager.py b/src/pipecat/utils/asyncio/task_manager.py index b41a571c9..d64e29c96 100644 --- a/src/pipecat/utils/asyncio/task_manager.py +++ b/src/pipecat/utils/asyncio/task_manager.py @@ -157,7 +157,7 @@ class TaskManager(BaseTaskManager): async def run_coroutine(): try: - await coroutine + return await coroutine except asyncio.CancelledError: logger.trace(f"{name}: task cancelled") # Re-raise the exception to ensure the task is cancelled.