@Override
    public void run() // read server messages and act on them.
    {
        doClient();

        if (clientReceiveThread != null) {
            clientReceiveThread.setRunning(false);
        }

        return;
    }