mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
Ensure finalize() always calls super.finalize()
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@767722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d0b945d90
commit
5433ef9c77
@ -109,9 +109,12 @@ public ThreadSafeClientConnManager(HttpParams params,
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
shutdown();
|
||||
} finally {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook for creating the connection pool.
|
||||
|
Loading…
x
Reference in New Issue
Block a user