From 5a4e39795f8f54d3336d037263d21ce569179a89 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Fri, 6 May 2022 01:44:28 -0500 Subject: [PATCH] server: Remove a redundant call to set_fd_events(). We will always call set_fd_events() again in sock_reselect(). Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- server/sock.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/sock.c b/server/sock.c index e46be9349e2..77a88a7fcf7 100644 --- a/server/sock.c +++ b/server/sock.c @@ -1112,9 +1112,6 @@ static void sock_poll_event( struct fd *fd, int event ) if (debug_level) fprintf(stderr, "socket %p select event: %x\n", sock, event); - /* we may change event later, remove from loop here */ - if (event & (POLLERR|POLLHUP)) set_fd_events( sock->fd, -1 ); - switch (sock->state) { case SOCK_UNCONNECTED: