Compare commits

..

1 Commits

Author SHA1 Message Date
Dave Horton
4723de9b24 further fix for race condition in #206 2023-01-03 13:16:54 -05:00

View File

@@ -450,8 +450,8 @@ class CallSession extends Emitter {
async enableBotMode(gather, autoEnable) {
try {
if (this.backgroundGatherTask) {
this.logger.info('CallSession:enableBotMode - bot mode currently enabled, ignoring request to start again');
return;
this.logger.info('CallSession:enableBotMode - bot mode currently enabled, stop it');
this.disableBotMode();
}
const t = normalizeJambones(this.logger, [gather]);
this.backgroundGatherTask = makeTask(this.logger, t[0]);