server.disconnected(id);
server.disconnected(this);
    private Packet readPacket() {        try {            if (in == null) {                in = new ObjectInputStream(socket.getInputStream());            }            Packet packet = (Packet)in.readObject();//                System.out.println("server(" + id + "): command #" + packet.getCommand() + " received.");            return packet;        } catch (IOException ex) {            System.err.println("server(" + id + "): IO error reading command");            server.disconnected(id);            return null;        } catch (ClassNotFoundException ex) {            System.err.println("server(" + id + "): class not found error reading command");            server.disconnected(id);            return null;        }    }