Fix/issue 676 (#680)

* fix bargin is not working

* fix bargin is not working
This commit is contained in:
Hoan Luu Huu
2024-03-11 19:46:38 +07:00
committed by GitHub
parent 9b3be6c0b9
commit 878578fe0f

View File

@@ -684,7 +684,8 @@ class CallSession extends Emitter {
} }
task = await this.backgroundTaskManager.newTask('bargeIn', gather); task = await this.backgroundTaskManager.newTask('bargeIn', gather);
task.sticky = autoEnable; task.sticky = autoEnable;
task.once('bargeIn-done', () => { // listen to the bargein-done from background manager
this.backgroundTaskManager.once('bargeIn-done', () => {
if (this.requestor instanceof WsRequestor) { if (this.requestor instanceof WsRequestor) {
try { try {
this.kill(true); this.kill(true);