mirror of https://github.com/docker/docker-py.git
Fix BaseHTTPAdapter for the SSL case
Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
parent
313f736488
commit
89485bf26e
|
|
@ -3,4 +3,6 @@ import requests.adapters
|
||||||
|
|
||||||
class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
|
class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
|
||||||
def close(self):
|
def close(self):
|
||||||
self.pools.clear()
|
super(BaseHTTPAdapter, self).close()
|
||||||
|
if hasattr(self, 'pools'):
|
||||||
|
self.pools.clear()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue