diff --git a/src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java b/src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java index 4da52f63..d038170a 100644 --- a/src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java +++ b/src/main/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcher.java @@ -340,7 +340,7 @@ private boolean isAnotherBuildWithSameParametersRunningOnNode(Node node, Queue.I // whether one of these executing units is an instance // of the queued item we were asked to compare to. if (computer != null) { - for (Executor exec : computer.getExecutors()) { + for (Executor exec : computer.getAllExecutors()) { // TODO: refactor into a nameEquals helper method final Queue.Executable currentExecutable = exec.getCurrentExecutable(); final SubTask parentTask = currentExecutable != null ? currentExecutable.getParent() : null;