This commit is contained in:
Dave Horton
2024-04-21 09:51:05 -04:00
parent 9cf9d4f587
commit 8d2b60c284

View File

@@ -126,7 +126,7 @@ class TaskTranscribe extends SttTask {
}) })
.catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill')); .catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill'));
} }
if (this.transcribing2 && this.ep2.connected) { if (this.transcribing2 && this.ep2?.connected) {
stopTranscription = true; stopTranscription = true;
this.ep2.stopTranscription({vendor: this.vendor, bugname: this.bugname}) this.ep2.stopTranscription({vendor: this.vendor, bugname: this.bugname})
.catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill')); .catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill'));