diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index bc10c2d2..5ca7738c 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -258,7 +258,7 @@ class TaskGather extends SttTask { startDtmfListener(); } this._stopVad(); - if (!this.killed) { + if (!this.killed && !this.resolved) { startListening(cs, ep); if (this.input.includes('speech') && this.vendor === 'nuance' && this.listenDuringPrompt) { this.logger.debug('Gather:exec - starting transcription timers after say completes'); @@ -296,7 +296,7 @@ class TaskGather extends SttTask { startDtmfListener(); } this._stopVad(); - if (!this.killed) { + if (!this.killed && !this.resolved) { startListening(cs, ep); if (this.input.includes('speech') && this.vendor === 'nuance' && this.listenDuringPrompt) { this.logger.debug('Gather:exec - starting transcription timers after play completes');