diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-12-17 13:46:26 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-12-17 13:46:26 -0800 |
commit | e6ce82e67711fbfb0f10eed250ae4763ec7deb28 (patch) | |
tree | 4fbef706ea4c378a40ce413d625bdb5ba0ce347c | |
parent | f4063c176fe0845ae134efc4849c35bd8ee24033 (diff) |
Explicitly close agent connection in top level agent class.
Fixes #459
-rw-r--r-- | paramiko/agent.py | 3 |
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 = () |