summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c2
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);