diff --git a/core/src/main/java/hudson/slaves/SlaveComputer.java b/core/src/main/java/hudson/slaves/SlaveComputer.java index dd7735d6ac32edd2590ef16ed5b05f81645fa06f..2fb668302134be3701f19244303df237e7f4bea1 100644 --- a/core/src/main/java/hudson/slaves/SlaveComputer.java +++ b/core/src/main/java/hudson/slaves/SlaveComputer.java @@ -580,7 +580,7 @@ public class SlaveComputer extends Computer { // if this method is called from within the slave computation thread, this should work Channel c = Channel.current(); - if (c!=null && c.getProperty("slave")==Boolean.TRUE) + if (c!=null && Boolean.TRUE.equals(c.getProperty("slave"))) return c; return null;