Skip to content

Conversation

@gabrielmbmb
Copy link

Description

This PR updates the WebsocketService._receive_task_handler method to catch the asyncio.CancelledError exception and break the receive messages loop in that case. This is required as some services such as ElevenLabsTTSService create a task for this method and then cancel it in its _disconnect method. As the code did not specifically catch asyncio.CancelledError, it was getting into the reconnect logic, not properly shutting down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant