diff --git a/bufferevent_sock.c b/bufferevent_sock.c index 87d12037..5cda691a 100644 --- a/bufferevent_sock.c +++ b/bufferevent_sock.c @@ -411,11 +411,14 @@ bufferevent_socket_connect(struct bufferevent *bev, bufev_p->connecting = 1; result = 0; goto done; - } else + } else { #endif r = evutil_socket_connect_(&fd, sa, socklen); if (r < 0) goto freesock; +#ifdef _WIN32 + } +#endif } #ifdef _WIN32 /* ConnectEx() isn't always around, even when IOCP is enabled.