From 8dd9bfbb743c2b5d8fd8f47dbdba287493dce7e0 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Fri, 4 Feb 2022 09:03:35 +0100 Subject: [PATCH] stop bot promt on bargein --- lib/tasks/cognigy/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 14a4fbbb..5f1fe30a 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -384,6 +384,7 @@ class Cognigy extends Task { if (this.config.bargeInEnabled && this.config.skipToBotOutputEnd !== false) { // clear task queue, resolve the last promise and cleanup; + this._killSayTasks(); this.taskQueue.lastPromise.resolve(); this.taskQueue.end(); while(this.changeConfigTasks.length > 0){