diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index e0c61289..a264842f 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -105,11 +105,13 @@ class TaskGather extends Task { if (err) return this.logger.error({err}, 'Gather:exec Error playing tts'); this.logger.debug('Gather: say task completed'); if (!this.killed) { - //if (this.listenAfterSpeech) { + if (this.listenAfterSpeech) { startListening(cs, ep); - // } else { - // this.kill(cs); - //} + } else { + setTimeout(()=>{ + this.kill(cs); + },1000) + } } }); }