fix uncaught exception with llm streaming

This commit is contained in:
Dave Horton
2025-08-22 13:24:59 -04:00
parent db5f0a0dce
commit 97408c7d3b

View File

@@ -3082,7 +3082,7 @@ Duration=${duration} `
task.notifyTtsStreamIsEmpty();
} else if (
// If Gather nested say task is streaming
TaskName.Gather === task.name && task.sayTask && task.sayTask.isStreamingTts) {
task && TaskName.Gather === task.name && task.sayTask && task.sayTask.isStreamingTts) {
const sayTask = task.sayTask;
sayTask.notifyTtsStreamIsEmpty();
}