diff options
-rw-r--r-- | src/libusbmuxd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index a72b259..d38d850 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -516,7 +516,7 @@ static int usbmuxd_listen_poll() sfd = connect_usbmuxd_socket(); if (sfd < 0) { while (event_cb) { - if ((sfd = connect_usbmuxd_socket()) > 0) { + if ((sfd = connect_usbmuxd_socket()) >= 0) { break; } sleep(1); |