mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
@@ -103,6 +103,7 @@ class BackgroundTaskManager extends Emitter {
|
|||||||
async _initBargeIn(opts) {
|
async _initBargeIn(opts) {
|
||||||
let task;
|
let task;
|
||||||
try {
|
try {
|
||||||
|
const copy = JSON.parse(JSON.stringify(opts));
|
||||||
const t = normalizeJambones(this.logger, [opts]);
|
const t = normalizeJambones(this.logger, [opts]);
|
||||||
task = makeTask(this.logger, t[0]);
|
task = makeTask(this.logger, t[0]);
|
||||||
task
|
task
|
||||||
@@ -121,7 +122,7 @@ class BackgroundTaskManager extends Emitter {
|
|||||||
if (task.sticky && !this.cs.callGone && !this.cs._stopping) {
|
if (task.sticky && !this.cs.callGone && !this.cs._stopping) {
|
||||||
this.logger.info('BackgroundTaskManager:_initBargeIn: restarting background bargeIn');
|
this.logger.info('BackgroundTaskManager:_initBargeIn: restarting background bargeIn');
|
||||||
this._bargeInHandled = false;
|
this._bargeInHandled = false;
|
||||||
this.newTask('bargeIn', opts, true);
|
this.newTask('bargeIn', copy, true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user