commit | 471b2261e73c5a65049a5c842369ec3de613850c | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Fri Oct 10 21:51:48 2014 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Fri Oct 10 21:51:48 2014 +0200 |
tree | 95132655ed1e1d0f24dc08266deee8704166b40b | |
parent | 8152b60564a557a009a76912f5e566c27fe9a3f2 [diff] |
Fix check for file descriptor validity
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 @@ 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);