From b600e90ffde511ba84b863d87d401031f19a51a7 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 4 Jan 2023 07:37:07 -0500 Subject: [PATCH] #206: ignore request to start bot mode when bot mode is already active --- lib/session/call-session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 44d6cc63..5c608709 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -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, stop it'); - this.disableBotMode(); + this.logger.info('CallSession:enableBotMode - bot mode currently enabled, ignoring request to start again'); + return; } const t = normalizeJambones(this.logger, [gather]); this.backgroundGatherTask = makeTask(this.logger, t[0]);