提交 59f9b2fc 编写于 作者: S stephenconnolly

Don't print error messages when they are not needed!


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3347 71c3de6d-444a-0410-be80-ed276b4c234a
上级 88e9cf90
......@@ -104,7 +104,7 @@ public class TcpSlaveAgentListener extends Thread {
}
/**
* Initiates the shuts down of the listener.
* Initiates the shuts down of the listener.
*/
public void shutdown() {
shuttingDown = true;
......@@ -140,11 +140,14 @@ public class TcpSlaveAgentListener extends Thread {
if(s.startsWith("Protocol:")) {
String protocol = s.substring(9);
if(protocol.equals("JNLP-connect"))
if(protocol.equals("JNLP-connect")) {
runJnlpConnect(in, out);
} else {
error(out, "Unknown protocol:" + s);
}
} else {
error(out, "Unrecognized protocol: "+s);
}
error(out, "Unrecognized protocol: "+s);
} catch (InterruptedException e) {
LOGGER.log(Level.WARNING,"Connection #"+id+" aborted",e);
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册