Commits

Jean-Francois Arcand committed 9567a64

Close the client on destroy

Comments (0)

Files changed (1)

src/main/java/org/sonatype/jersey/client/ahc/AhcHttpClient.java

         return new AhcHttpClient(createDefaultClientHander(cc), provider);
     }
 
+    @Override
+    public void destroy() {
+        clientHandler.getHttpClient().close();    
+    }
+
     /**
      * Create a default AsyncHttpClient client handler.
      *