From 1d77c0cd20604214d221ee472aeeee33e79e4830 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 12 Apr 2024 20:08:21 -0400 Subject: [PATCH] bugfx: bargein after first when config bargein with sticky=true fails --- lib/session/call-session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 8b198a36..11f7413a 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -702,7 +702,7 @@ class CallSession extends Emitter { task = await this.backgroundTaskManager.newTask('bargeIn', gather); task.sticky = autoEnable; // listen to the bargein-done from background manager - this.backgroundTaskManager.once('bargeIn-done', () => { + this.backgroundTaskManager.on('bargeIn-done', () => { if (this.requestor instanceof WsRequestor) { try { this.kill(true);