fix error handling

This commit is contained in:
Denis Fomin 2013-01-03 11:47:34 +04:00
parent 477e5a5093
commit c4d5ccf4e0
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ class ReceiverTester(Socks5, IdleObject):
self._send = self._sock.send
self._recv = self._sock.recv
except Exception as ee:
errnum = ee[0]
errnum = ee.errno
# 56 is for freebsd
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
# still trying to connect