netlib: always disconnect when using context manager

This commit is contained in:
Maximilian Hils 2016-06-06 15:10:03 -07:00
parent ced6fb4cf9
commit 7cb7d9ad32

View File

@ -580,7 +580,9 @@ class _Connection(object):
@contextlib.contextmanager
def _closer(client):
try:
yield
finally:
client.close()