fix uncaught exception with llm streaming

This commit is contained in:
Dave Horton committed 2025-08-22 13:24:59 -04:00
1 parent db5f0a0dce
commit 97408c7d3b
1 file changed
+1 -1
+1 -1
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();
}