public void run()
        {
            while(threadSocket != null && socket.isConnected())
            {
                try{
                    Message message = (Message)reader.readObject();
                    message.setIp(socket.getInetAddress().getHostAddress());
                    message.setPort(socket.getPort());
                    threadSocket.receiveMessage(message);
                }
                catch(IOException e)
                {
                    ServerHelper.log(LogType.ERROR, "Fehler beim Empfangen einer Nachricht (IOException)");
                    if(client != null)
                        client.closeClient();
                    close();
                }
                catch(ClassNotFoundException e)
                {
                    ServerHelper.log(LogType.ERROR, "Empfangene Nachricht hat nicht den Typ Message");
                }
            }
            ServerHelper.log(LogType.NETWORK, "Verbindung zu " + socket.getInetAddress().getHostAddress() + ":" + socket.getPort() + " unterbrochen");
            close();
        }