提交 6d4ba4ea 编写于 作者: K Kohsuke Kawaguchi

race condition. Two evaluations of n.toComputer() isn't guaranteed to return the same object

上级 46ceeb0d
......@@ -288,7 +288,8 @@ public abstract class Label extends Actionable implements Comparable<Label>, Mod
@Exported
public boolean isOffline() {
for (Node n : getNodes()) {
if(n.toComputer() != null && !n.toComputer().isOffline())
Computer c = n.toComputer();
if(c != null && !c.isOffline())
return false;
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册