http-client-branch: review comment - fix incorrect cf completion in SSLFlowDelegate http-client-branch
authorchegar
Tue, 17 Apr 2018 13:22:09 +0100
branchhttp-client-branch
changeset 56442 19534e49b523
parent 56441 66018d90fc97
child 56443 5015de1c9326
http-client-branch: review comment - fix incorrect cf completion in SSLFlowDelegate
src/java.net.http/share/classes/jdk/internal/net/http/common/SSLFlowDelegate.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/common/SSLFlowDelegate.java	Mon Apr 16 18:38:31 2018 +0100
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/common/SSLFlowDelegate.java	Tue Apr 17 13:22:09 2018 +0100
@@ -120,7 +120,7 @@
         this.readerCF = reader.completion();
         this.writerCF = reader.completion();
         readerCF.exceptionally(this::stopOnError);
-        readerCF.exceptionally(this::stopOnError);
+        writerCF.exceptionally(this::stopOnError);
 
         CompletableFuture.allOf(reader.completion(), writer.completion())
             .thenRun(this::normalStop);