gather bugfix: dont start transcribing after call is gone

This commit is contained in:
Dave Horton committed 2022-04-10 15:48:35 -04:00
1 parent 41d6c74c8e
commit db5486de27
1 file changed
+1 -1
+1 -1
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);
}