patch from james bardin to allow closing an SSHClient more than once. :)
This commit is contained in:
parent
645bdfd861
commit
db97851f36
|
@ -294,6 +294,8 @@ class SSHClient (object):
|
||||||
"""
|
"""
|
||||||
Close this SSHClient and its underlying L{Transport}.
|
Close this SSHClient and its underlying L{Transport}.
|
||||||
"""
|
"""
|
||||||
|
if self._transport is None:
|
||||||
|
return
|
||||||
self._transport.close()
|
self._transport.close()
|
||||||
self._transport = None
|
self._transport = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue