diff --git a/changelog/4186.fixed.md b/changelog/4186.fixed.md new file mode 100644 index 000000000..1ca3f1122 --- /dev/null +++ b/changelog/4186.fixed.md @@ -0,0 +1 @@ +- Fixed `FastAPIWebsocketTransport` intermittently hanging on shutdown when the remote side (e.g. Twilio) disconnects while audio is being sent. A race condition between the send and receive paths could cause the `on_client_disconnected` callback to be skipped, leaving the pipeline waiting for a disconnect signal that never came.