server: Signal AFD_POLL_BIT_WRITE at the same time as AFD_POLL_BIT_CONNECT.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=55333
This commit is contained in:
Zebediah Figura 2023-08-24 21:08:25 -05:00 committed by Alexandre Julliard
parent 846636274f
commit dbe7788817

View file

@ -1293,7 +1293,10 @@ 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 );
post_socket_event( sock, AFD_POLL_BIT_WRITE );
}
if (event & (POLLERR | POLLHUP))
post_socket_event( sock, AFD_POLL_BIT_CONNECT_ERR );
break;