mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
gather: dont restart transcribing if task has been killed
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:17.7.1-slim
|
FROM node:slim
|
||||||
WORKDIR /opt/app/
|
WORKDIR /opt/app/
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ class TaskGather extends Task {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (evt.is_final) {
|
if (evt.is_final) {
|
||||||
if (evt.alternatives[0].transcript === '' && !this.callSession.callGone) {
|
if (evt.alternatives[0].transcript === '' && !this.callSession.callGonen && !this.killed) {
|
||||||
this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again');
|
this.logger.info({evt}, 'TaskGather:_onTranscription - got empty transcript, listen again');
|
||||||
return this._startTranscribing(ep);
|
return this._startTranscribing(ep);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user