Merge pull request #2751 from pipecat-ai/aleix/nova-sonic-disconnect-fix

AWSNovaSonicLLMService: add missing await
This commit is contained in:
Aleix Conchillo Flaqué
2025-09-30 13:12:22 -07:00
committed by GitHub

View File

@@ -429,7 +429,7 @@ class AWSNovaSonicLLMService(LLMService):
await self._finish_connecting_if_context_available()
except Exception as e:
logger.error(f"{self} initialization error: {e}")
self._disconnect()
await self._disconnect()
async def _finish_connecting_if_context_available(self):
# We can only finish connecting once we've gotten our initial context and we're ready to