Merge pull request #4347 from pipecat-ai/mb/deepgram-stt-keepalive-unbound

This commit is contained in:
Mark Backman
2026-04-21 15:15:55 -04:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

1
changelog/4347.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed a crash in `DeepgramSTTService` when an `STTUpdateSettingsFrame` arrived before the WebSocket handshake completed (for example, when pushing an update upstream on `StartFrame`). The settings-triggered reconnect cancelled the in-flight connection task before its keepalive task was created, causing an `UnboundLocalError: cannot access local variable 'keepalive_task'` in the handler's `finally` block.