mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-24 12:24:20 +00:00
fix #206: prevent 2 simultaneous background gathers
This commit is contained in:
1 parent
1fcfe08f9b
commit
050297825b
1 file changed
+4
@@ -449,6 +449,10 @@ 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();
|
||||
}
|
||||
const t = normalizeJambones(this.logger, [gather]);
|
||||
this.backgroundGatherTask = makeTask(this.logger, t[0]);
|
||||
this._bargeInEnabled = true;
|
||||
|
||||
Reference in new issue
Block a user