gather bugfix: dont start transcribing after call is gone

This commit is contained in:
Dave Horton
2022-04-10 15:48:35 -04:00
parent 41d6c74c8e
commit db5486de27

View File

@@ -385,7 +385,7 @@ class TaskGather extends Task {
}
}
if (evt.is_final) {
if (evt.alternatives[0].transcript === '') {
if (evt.alternatives[0].transcript === '' && !this.callSession.callGone) {
this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again');
return this._startTranscribing(ep);
}