1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

server: Do not set the socket state in complete_async_connect().

It's already set previously in sock_poll_event(). Moreover, complete_async_connect() will not always be called.
This commit is contained in:
Zebediah Figura 2022-05-29 11:29:28 -05:00 committed by Alexandre Julliard
parent 647bed72f5
commit ea6f88d83f

View File

@ -806,8 +806,6 @@ static void complete_async_connect( struct sock *sock )
if (debug_level) fprintf( stderr, "completing connect request for socket %p\n", sock );
sock->state = SOCK_CONNECTED;
if (!req->send_len)
{
async_terminate( req->async, STATUS_SUCCESS );