diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index adbf91ae..0ddaf20d 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -263,14 +263,16 @@ class Cognigy extends Task { try { // lets wait until we have finished processing the speech before // starting a gather... + this.logger.debug("enqueued bot final ping gather"); this._enqueueTask(async() => { - - try { + this.logger.debug("executing bot final ping gather"); + try { const gatherTask = this._makeGatherTask(); await gatherTask.exec(cs, ep, this); } catch (err) { this.logger.info({err}, 'Cognigy final ping gather task returned error'); } + this.logger.debug("executed bot final ping gather"); }); } catch (err) { @@ -371,7 +373,7 @@ class Cognigy extends Task { // clear task queue, resolve the last promise and cleanup; this.taskQueue.lastPromise.resolve(); this.taskQueue.end(); - this._killSayTasks(); + //this._killSayTasks(); this.taskQueue.autostart = true; }