server: Don't delay events, we simply shouldn't send them in the first place.

This commit is contained in:
Mike Kaplinskiy 2010-07-27 00:16:24 -04:00 committed by Alexandre Julliard
parent 0b251c08f2
commit 93db86a7e0

View file

@ -260,9 +260,7 @@ static void sock_wake_up( struct sock *sock )
unsigned int events = sock->pmask & sock->mask;
int i;
/* Do not signal events if there are still pending asynchronous IO requests */
/* We need this to delay FD_CLOSE events until all pending overlapped requests are processed */
if ( !events || async_queued( sock->read_q ) || async_queued( sock->write_q ) ) return;
if ( !events ) return;
if (sock->event)
{