try { while (!isInterrupted()) { if (fromServer==null){
try { while (!isInterrupted()) { if (fromServer == null) { try { sleep(5000); } catch (InterruptedException e) { interrupt(); }
    public void start() { //synchronized void start()        ircWorker = new Thread() {            public void run() {                try                {                    while (!isInterrupted())                    {                        if (fromServer==null){                            continue;                        }                        String line = fromServer.readLine();                        if (line != null)                        {                            parseFromServer(line);                        }                        else                        {                            // a null line indicates that our server has                            // closed the connection, right?                            tabUpdate("Init Window",                                      "READ a null line, server closed the connection or network is fucked.");                            closeAll();                            try                            {                                sleep(5000);                            }                            catch (InterruptedException e)                            {                                interrupt();                            }                        }                    }                }                catch (IOException e)                {                    if (logger.isEnabledFor(Level.ERROR)){                        logger.error("Unbehandelte Exception", e);                    }                }                SwingUtilities.invokeLater(new Runnable(){                    public void run(){                        connectStartRegister();                    }                });            }        };        ircWorker.start();    }