diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 80f4d9b1..daf15ffe 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -491,9 +491,8 @@ class TaskGather extends SttTask { this._clearTimer(); this._timeoutTimer = setTimeout(() => { if (this.isContinuousAsr) this._startAsrTimer(); - else if (this.interDigitTimeout <= 0 || - this.digitBuffer.length < this.minDigits || - this.needsStt && this.digitBuffer.length === 0) { + if (this.interDigitTimer) return; // let the inter-digit timer complete + else { this._resolve(this.digitBuffer.length >= this.minDigits ? 'dtmf-num-digits' : 'timeout'); } }, this.timeout);