bugfx: bargein after first when config bargein with sticky=true fails

This commit is contained in:
Dave Horton
2024-04-12 20:08:21 -04:00
parent 9eab81268b
commit 1d77c0cd20

View File

@@ -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);