waitingOnHandshakeCompletion = false; //we've received what we expected
hasCompletedConnection = true; //and we're now connected
if (message.getData() != null) {
killGradleServerPort = (Integer) message.getData();
killGradleClientProcotol = new KillGradleClientProtocol();
killGradleClient = new ClientProcess(killGradleClientProcotol);
killGradleClient.start(killGradleServerPort);
handShakeCompleted();
} else {
addStatus("Invalid handshaking. Missing port number. Stopping connection");
server.sendMessage("?", "Invalid client handshake protocol!");