summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-04-24 22:41:43 +0200
committerJon Bratseth <bratseth@oath.com>2018-04-24 22:41:43 +0200
commit0906091861f469220baa8a0c310169ad72da3123 (patch)
treeae1b6aaa3fc9280007da3665281fbe830d1e12d6 /container-core
parent06371345a7b7f7d27406bd8d72ca6769b7edb651 (diff)
Close at end
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/processing/rendering/AsynchronousSectionedRenderer.java6
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);
}