summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-12-17 13:46:26 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-12-17 13:46:26 -0800
commite6ce82e67711fbfb0f10eed250ae4763ec7deb28 (patch)
tree4fbef706ea4c378a40ce413d625bdb5ba0ce347c
parentf4063c176fe0845ae134efc4849c35bd8ee24033 (diff)
Explicitly close agent connection in top level agent class.
Fixes #459
-rw-r--r--paramiko/agent.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/agent.py b/paramiko/agent.py
index 2b11337f..e77b7281 100644
--- a/paramiko/agent.py
+++ b/paramiko/agent.py
@@ -72,7 +72,8 @@ class AgentSSH(object):
self._keys = tuple(keys)
def _close(self):
- #self._conn.close()
+ if self._conn is not None:
+ self._conn.close()
self._conn = None
self._keys = ()