Close at end
@@ -363,9 +363,9 @@ public abstract class AsynchronousSectionedRenderer<RESPONSE extends Response> e
endRenderLevel(list);
stream.flush();
dataListListenerStack.removeFirst();
- list.close();
if (parent != null)
parent.childCompleted();
+ list.close();
}
/** Called each time a direct child of this completed. */
@@ -507,7 +507,7 @@ public abstract class AsynchronousSectionedRenderer<RESPONSE extends Response> e
this.dataListListener = dataListListener;
}
- protected void render() throws IOException, InterruptedException, ExecutionException {
+ protected void render() throws IOException {
dataListListener.renderData();
flushIfLikelyToSuspend(dataListListener.list);
}
