Signed-off-by: Zebediah Figura z.figura12@gmail.com --- server/sock.c | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/server/sock.c b/server/sock.c index aa2c6842efc..827eba52117 100644 --- a/server/sock.c +++ b/server/sock.c @@ -610,8 +610,6 @@ static void complete_async_connect( struct sock *sock )
if (debug_level) fprintf( stderr, "completing connect request for socket %p\n", sock );
- sock->pending_events &= ~(FD_CONNECT | FD_READ | FD_WRITE); - sock->reported_events &= ~(FD_CONNECT | FD_READ | FD_WRITE); sock->state = SOCK_CONNECTED;
if (!req->send_len) @@ -1846,9 +1844,6 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async ) /* a connected or connecting socket can no longer be accepted into */ allow_fd_caching( sock->fd );
- sock->pending_events &= ~(FD_CONNECT | FD_READ | FD_WRITE); - sock->reported_events &= ~(FD_CONNECT | FD_READ | FD_WRITE); - if (!ret) { sock->state = SOCK_CONNECTED;