jdk/src/java.httpclient/share/classes/java/net/http/SSLTunnelConnection.java
changeset 37720 45cd7cc65382
parent 36131 379db4b2f95d
child 38967 0967b6d49eef
--- a/jdk/src/java.httpclient/share/classes/java/net/http/SSLTunnelConnection.java	Fri Apr 29 13:46:19 2016 -0700
+++ b/jdk/src/java.httpclient/share/classes/java/net/http/SSLTunnelConnection.java	Sat Apr 30 00:30:31 2016 +0100
@@ -130,12 +130,8 @@
     }
 
     @Override
-    void close() {
-        try {
-            //System.err.println ("Closing: " + this);
-            delegate.channel().close(); // TODO: proper close
-        } catch (IOException ex) {
-        }
+    public void close() {
+        Utils.close(delegate.channel());
     }
 
     @Override