patch from james bardin to allow closing an SSHClient more than once. :)
This commit is contained in:
Robey Pointer 2007-11-09 22:52:22 -08:00
parent 645bdfd861
commit db97851f36
1 changed files with 2 additions and 0 deletions

View File

@ -294,6 +294,8 @@ class SSHClient (object):
"""
Close this SSHClient and its underlying L{Transport}.
"""
if self._transport is None:
return
self._transport.close()
self._transport = None