提交 fc0f23c0 编写于 作者: K kohsuke

no need to do this inside the loop, although not that it hurts

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9399 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0cf3e83a
......@@ -21,9 +21,10 @@ public class SlaveReconnectionWork extends SafeTimerTask {
private final Map<Slave, Long> nextCheck = new WeakHashMap<Slave, Long>();
protected void doRun() {
final Queue queue = Hudson.getInstance().getQueue();
for (Slave s : Hudson.getInstance().getSlaves()) {
if (!nextCheck.containsKey(s) || System.currentTimeMillis() > nextCheck.get(s)) {
final Queue queue = Hudson.getInstance().getQueue();
boolean hasJob = false;
for (Executor exec: s.getComputer().getExecutors()) {
if (!exec.isIdle()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册