mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
bugfix: enqueue task was only invoking waitUrl a single time
This commit is contained in:
@@ -337,7 +337,7 @@ class TaskEnqueue extends Task {
|
|||||||
}
|
}
|
||||||
tasksToRun.push(o);
|
tasksToRun.push(o);
|
||||||
}
|
}
|
||||||
|
const cloneTasks = [...tasksToRun];
|
||||||
if (this.killed) return [];
|
if (this.killed) return [];
|
||||||
else if (tasksToRun.length > 0) {
|
else if (tasksToRun.length > 0) {
|
||||||
this._playSession = new ConfirmCallSession({
|
this._playSession = new ConfirmCallSession({
|
||||||
@@ -356,7 +356,7 @@ class TaskEnqueue extends Task {
|
|||||||
this.state = QueueResults.Leave;
|
this.state = QueueResults.Leave;
|
||||||
this.kill(cs);
|
this.kill(cs);
|
||||||
}
|
}
|
||||||
return tasksToRun;
|
return cloneTasks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user