Fixes SecureCRT issue when disconnecting from an IOU device on Windows.

This commit is contained in:
grossmj 2014-10-25 18:03:24 -06:00
parent 20acca64b5
commit 88b9d946da

View File

@ -224,6 +224,8 @@ class TelnetServer(Console):
buf = self._read_cur(bufsize, socket.MSG_DONTWAIT) buf = self._read_cur(bufsize, socket.MSG_DONTWAIT)
except BlockingIOError: except BlockingIOError:
return None return None
except ConnectionResetError:
buf = b''
if not buf: if not buf:
self._disconnect(fileno) self._disconnect(fileno)