mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
Fix/gather timeout (#594)
* fix gather verb timeout does not work * wip * wip * wip * wip * fix review comments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user