diff options
Diffstat (limited to 'container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java')
-rw-r--r-- | container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java b/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java index 6e1d2627c22..7907bb27a6d 100644 --- a/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java +++ b/container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java @@ -363,16 +363,16 @@ 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. */ private void childCompleted() { uncompletedChildren--; - if (uncompletedChildren>0) return; + if (uncompletedChildren > 0) return; if (list.incoming().isComplete()) // i) if the parent had completed earlier, render it now, see ii) run(); } @@ -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); } |