restructure gather a bit

This commit is contained in:
akirilyuk
2022-02-03 22:01:29 +01:00
parent 017bc39103
commit 22dad4eed6
2 changed files with 14 additions and 10 deletions

View File

@@ -369,13 +369,12 @@ class Cognigy extends Task {
//then stop execution of currently queues bot output before sending the
//response to waiting bot since otherwise we could stop upcoming bot output
/*
if (this.config.bargeInEnabled && this.config.skipUntilBotInput) {
// clear task queue, resolve the last promise and cleanup;
this.taskQueue.lastPromise.resolve();
this.taskQueue.end();
this.taskQueue.autostart = true;
}*/
}
if (this.eventHook) {
this.performHook(cs, this.eventHook, {event: 'userMessage', message: utterance})