diff --git a/core/src/main/java/hudson/TcpSlaveAgentListener.java b/core/src/main/java/hudson/TcpSlaveAgentListener.java index 46da870fd1..648e334bef 100644 --- a/core/src/main/java/hudson/TcpSlaveAgentListener.java +++ b/core/src/main/java/hudson/TcpSlaveAgentListener.java @@ -143,6 +143,8 @@ public class TcpSlaveAgentListener extends Thread { if(protocol.equals("JNLP-connect")) runJnlpConnect(in, out); } + + error(out, "Unrecognized protocol: "+s); } catch (InterruptedException e) { LOGGER.log(Level.WARNING,"Connection #"+id+" aborted",e); try {