381401 Print log warning when stop attempt made with incorrect STOP.KEY

This commit is contained in:
Jan Bartel 2012-06-01 20:01:44 +02:00
parent 40014a93d0
commit 9d7fc6975b
1 changed files with 3 additions and 0 deletions

View File

@ -99,7 +99,10 @@ public class Monitor extends Thread
new LineNumberReader(new InputStreamReader(socket.getInputStream()));
String key=lin.readLine();
if (!_key.equals(key))
{
System.err.println("Ignoring command with incorrect key");
continue;
}
String cmd=lin.readLine();
Config.debug("command=" + cmd);