wait before killing gather

This commit is contained in:
akirilyuk
2022-02-03 18:29:48 +01:00
parent 1685262658
commit 4e2feda7f3

View File

@@ -105,11 +105,13 @@ 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 {
// this.kill(cs);
//}
} else {
setTimeout(()=>{
this.kill(cs);
},1000)
}
}
});
}