mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +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);
|
||||
}
|
||||
|
||||
const cloneTasks = [...tasksToRun];
|
||||
if (this.killed) return [];
|
||||
else if (tasksToRun.length > 0) {
|
||||
this._playSession = new ConfirmCallSession({
|
||||
@@ -356,7 +356,7 @@ class TaskEnqueue extends Task {
|
||||
this.state = QueueResults.Leave;
|
||||
this.kill(cs);
|
||||
}
|
||||
return tasksToRun;
|
||||
return cloneTasks;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user