test/jdk/java/net/httpclient/MockServer.java
branchhttp-client-branch
changeset 56812 a6180efe1d58
parent 56810 f05220c47e02
child 56833 be0819373531
--- a/test/jdk/java/net/httpclient/MockServer.java	Tue Jun 26 13:19:01 2018 +0100
+++ b/test/jdk/java/net/httpclient/MockServer.java	Wed Jun 27 21:24:56 2018 +0100
@@ -284,7 +284,7 @@
             }
             try {
                 socket.close();
-            } catch (IOException e) {}
+            } catch (Throwable e) {}
             synchronized (removals) {
                 removals.add(this);
             }
@@ -339,7 +339,7 @@
         closed = true;
         try {
             ss.close();
-        } catch (IOException e) {
+        } catch (Throwable e) {
             e.printStackTrace();
         }
         for (Connection c : sockets) {