mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:57:22 +00:00
server: Make sure that async_request_complete() is called in the case of a failed connection as well.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51726 Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0d22e8455a
commit
08eaf8f481
|
@ -2905,7 +2905,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, timeout_t
|
||||||
/* FIXME: do other error conditions deserve a similar treatment? */
|
/* FIXME: do other error conditions deserve a similar treatment? */
|
||||||
if (sock->state != SOCK_CONNECTING && sock->errors[AFD_POLL_BIT_CONNECT_ERR] && (mask & AFD_POLL_CONNECT_ERR))
|
if (sock->state != SOCK_CONNECTING && sock->errors[AFD_POLL_BIT_CONNECT_ERR] && (mask & AFD_POLL_CONNECT_ERR))
|
||||||
{
|
{
|
||||||
req->iosb->status = STATUS_SUCCESS;
|
signaled = TRUE;
|
||||||
output[i].flags |= AFD_POLL_CONNECT_ERR;
|
output[i].flags |= AFD_POLL_CONNECT_ERR;
|
||||||
output[i].status = sock_get_ntstatus( sock->errors[AFD_POLL_BIT_CONNECT_ERR] );
|
output[i].status = sock_get_ntstatus( sock->errors[AFD_POLL_BIT_CONNECT_ERR] );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue