remove killing gather

This commit is contained in:
akirilyuk committed 2022-02-03 18:48:01 +01:00
1 parent 2fc3febcf6
commit efba631282
1 file changed
+6 -6
+6 -6
View File
@@ -105,14 +105,14 @@ class TaskGather extends Task {
if (err) return this.logger.error({err}, 'Gather:exec Error playing tts');
this.logger.debug('Gather: say task completed');
if (!this.killed) {
if (this.listenAfterSpeech) {
// if (this.listenAfterSpeech) {
startListening(cs, ep);
} else {
setTimeout(()=>{
this.kill(cs);
},2000)
// } else {
// setTimeout(()=>{
// this.kill(cs);
// },2000)
}
// }
}
});
}