From c5cd488fdfb40ae135d07fefcd169b7d3d01381d Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Fri, 12 Dec 2025 21:03:08 +0700 Subject: [PATCH] fixed gather should ignore transcription if task is killed/resolved. (#1465) * fixed gather should ignore transcription if task is killed/resolved. * wip --- lib/tasks/gather.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 9b94e891..194086aa 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -1318,6 +1318,8 @@ class TaskGather extends SttTask { } this.resolved = true; + // gather is resolved, prevent any further transcription events while resolve in progress + this.removeCustomEventListeners(); // If bargin is false and ws application return ack to verb:hook // the gather should not play any audio this._killAudio(this.cs);