Commit a1fd99cf authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Clear sock->errors[AFD_POLL_BIT_CONNECT_ERR] in sock_poll_event().

Give sock_dispatch_events() a more consistent scope.
parent 293c6d24
......@@ -1090,10 +1090,7 @@ static void sock_dispatch_events( struct sock *sock, enum connection_state prevs
case SOCK_CONNECTING:
if (event & POLLOUT)
{
post_socket_event( sock, AFD_POLL_BIT_CONNECT, 0 );
sock->errors[AFD_POLL_BIT_CONNECT_ERR] = 0;
}
if (event & (POLLERR | POLLHUP))
post_socket_event( sock, AFD_POLL_BIT_CONNECT_ERR, error );
break;
......@@ -1149,6 +1146,7 @@ static void sock_poll_event( struct fd *fd, int event )
{
sock->state = SOCK_CONNECTED;
sock->connect_time = current_time;
sock->errors[AFD_POLL_BIT_CONNECT_ERR] = 0;
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment