From 4837527745d98b9314eec1a250e2e13ce1ec3031 Mon Sep 17 00:00:00 2001 From: Nisarg Jhaveri Date: Wed, 17 Feb 2021 17:31:54 +0530 Subject: Remove redundent `select` call from idevicedebugserverproxy.c - Turns out `socket_receive` anyway internally calls `select` again. Use `socket_receive_timeout` instead. - Remove logging for timeout in socket.c as well, it is not really an error condition --- common/socket.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common') diff --git a/common/socket.c b/common/socket.c index 354e6a4..99a96b1 100644 --- a/common/socket.c +++ b/common/socket.c @@ -1084,8 +1084,6 @@ int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout) return -1; } } else if (sret == 0) { - if (verbose >= 2) - fprintf(stderr, "%s: timeout\n", __func__); return -ETIMEDOUT; } } while (eagain); -- cgit v1.1-32-gdbae