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
This commit is contained in:
stephenconnolly committed 2007-05-25 11:17:14 +00:00
1 parent 88e9cf904c
commit 59f9b2fcfe
1 file changed
+7 -4
@@ -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 {