diff --git a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java index 367a13a58..29ffae964 100644 --- a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java +++ b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java @@ -109,8 +109,11 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { @Override protected void finalize() throws Throwable { - shutdown(); - super.finalize(); + try { + shutdown(); + } finally { + super.finalize(); + } } /**