kill all say tasks if we got transcription on barge in

This commit is contained in:
akirilyuk
2022-02-03 18:11:44 +01:00
parent 294d38dcd1
commit d2732c9be6

View File

@@ -362,8 +362,9 @@ class Cognigy extends Task {
if (this.config.skipUntilBotInput) { if (this.config.skipUntilBotInput) {
// clear task queue, resolve the last promise and cleanup; // clear task queue, resolve the last promise and cleanup;
this.taskQueue.end();
this.taskQueue.lastPromise.resolve(); this.taskQueue.lastPromise.resolve();
this.taskQueue.end();
this._killSayTasks()
this.taskQueue.autostart = true; this.taskQueue.autostart = true;
} }