void flush()

in src/main/java/org/apache/commons/net/nntp/NntpThreadContainer.java [50:76]


    void flush() {
        if (parent != null && threadable == null) {
            throw new IllegalStateException("no threadable in " + this.toString());
        }

        parent = null;

        if (threadable != null) {
            threadable.setChild(child == null ? null : child.threadable);
        }

        if (child != null) {
            child.flush();
            child = null;
        }

        if (threadable != null) {
            threadable.setNext(next == null ? null : next.threadable);
        }

        if (next != null) {
            next.flush();
            next = null;
        }

        threadable = null;
    }