From 8d2b60c2847247b499a1e24dd86f4210398b87f8 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sun, 21 Apr 2024 09:51:05 -0400 Subject: [PATCH] minor --- lib/tasks/transcribe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/transcribe.js b/lib/tasks/transcribe.js index cf735ddd..4dc82dc5 100644 --- a/lib/tasks/transcribe.js +++ b/lib/tasks/transcribe.js @@ -126,7 +126,7 @@ class TaskTranscribe extends SttTask { }) .catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill')); } - if (this.transcribing2 && this.ep2.connected) { + if (this.transcribing2 && this.ep2?.connected) { stopTranscription = true; this.ep2.stopTranscription({vendor: this.vendor, bugname: this.bugname}) .catch((err) => this.logger.info(err, 'Error TaskTranscribe:kill'));