diff options
-rw-r--r-- | paramiko/packet.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paramiko/packet.py b/paramiko/packet.py index 11ccac7a..e2c89592 100644 --- a/paramiko/packet.py +++ b/paramiko/packet.py @@ -218,6 +218,8 @@ class Packetizer (object): # we need to work around it. if (type(e.args) is tuple) and (len(e.args) > 0) and (e.args[0] == errno.EAGAIN): got_timeout = True + elif self.__closed: + raise EOFError() else: raise if got_timeout: |