Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pipecat/services/websocket_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ async def _receive_task_handler(self, report_error: Callable[[ErrorFrame], Await
try:
await self._receive_messages()
retry_count = 0 # Reset counter on successful message receive
except asyncio.CancelledError:
logger.debug(f"{self} receive task cancelled")
break
except ConnectionClosedOK as e:
# Normal closure, don't retry
logger.debug(f"{self} connection closed normally: {e}")
Expand Down