From d2732c9be666f9cb312ca88a8994da93f39931fc Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Thu, 3 Feb 2022 18:11:44 +0100 Subject: [PATCH] kill all say tasks if we got transcription on barge in --- lib/tasks/cognigy/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 146855e3..13cd9e1f 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -362,8 +362,9 @@ class Cognigy extends Task { if (this.config.skipUntilBotInput) { // clear task queue, resolve the last promise and cleanup; - this.taskQueue.end(); this.taskQueue.lastPromise.resolve(); + this.taskQueue.end(); + this._killSayTasks() this.taskQueue.autostart = true; }