diff --git a/src/tcp_listener.cpp b/src/tcp_listener.cpp index 0dd8caa6..b0c18dd6 100644 --- a/src/tcp_listener.cpp +++ b/src/tcp_listener.cpp @@ -178,10 +178,6 @@ int zmq::tcp_listener_t::set_address (const char *addr_) // Create a listening socket. s = open_socket (address.family (), SOCK_STREAM, IPPROTO_TCP); -#ifdef ZMQ_HAVE_WINDOWS - if (s == INVALID_SOCKET) - errno = wsa_error_to_errno (WSAGetLastError ()); -#endif // IPv6 address family not supported, try automatic downgrade to IPv4. if (s == -1 && address.family () == AF_INET6