stop bot promt on bargein

This commit is contained in:
akirilyuk
2022-02-04 09:03:35 +01:00
parent cee21c3dbc
commit 8dd9bfbb74

View File

@@ -384,6 +384,7 @@ class Cognigy extends Task {
if (this.config.bargeInEnabled && this.config.skipToBotOutputEnd !== false) { if (this.config.bargeInEnabled && this.config.skipToBotOutputEnd !== false) {
// clear task queue, resolve the last promise and cleanup; // clear task queue, resolve the last promise and cleanup;
this._killSayTasks();
this.taskQueue.lastPromise.resolve(); this.taskQueue.lastPromise.resolve();
this.taskQueue.end(); this.taskQueue.end();
while(this.changeConfigTasks.length > 0){ while(this.changeConfigTasks.length > 0){