diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 2f70bc72e..c5049c6fc 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -458,7 +458,10 @@ class P2PConnection(IdleObject, PlugIn): self._sock.setblocking(False) except Exception, ee: (errnum, errstr) = ee - if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK): + errors = (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK) + if 'WSAEINVAL' in errno.__dict__: + errors += (errno.WSAEINVAL,) + if errnum in errors: return # win32 needs this elif errnum not in (0, 10056, errno.EISCONN) or self.state != 0: