mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
bug: clear asr timer when gather resolves with timeout (#788)
This commit is contained in:
@@ -570,7 +570,10 @@ class TaskGather extends SttTask {
|
||||
}
|
||||
|
||||
_clearAsrTimer() {
|
||||
if (this._asrTimer) clearTimeout(this._asrTimer);
|
||||
if (this._asrTimer) {
|
||||
this.logger.debug('_clearAsrTimer: asrTimer cleared');
|
||||
clearTimeout(this._asrTimer);
|
||||
}
|
||||
this._asrTimer = null;
|
||||
}
|
||||
|
||||
@@ -1010,6 +1013,8 @@ class TaskGather extends SttTask {
|
||||
clearTimeout(this.interDigitTimer);
|
||||
this._clearTimer();
|
||||
this._clearFastRecognitionTimer();
|
||||
this._clearAsrTimer();
|
||||
this._clearFinalAsrTimer();
|
||||
|
||||
this.span.setAttributes({
|
||||
channel: 1,
|
||||
|
||||
Reference in New Issue
Block a user