summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-04-08 13:05:33 +0200
committerGravatar Nikias Bassen2009-04-08 13:05:33 +0200
commit3aa04f1fc526d7f8d33ebafb7ab7c130350b81ed (patch)
treed1d8297fd4a518f83c7f4191e74172a30304efeb
parent05e6e479a0ba45a5b164e4e18fbbbb1c600554b0 (diff)
downloadusbmuxd-3aa04f1fc526d7f8d33ebafb7ab7c130350b81ed.tar.gz
usbmuxd-3aa04f1fc526d7f8d33ebafb7ab7c130350b81ed.tar.bz2
increased read timeout for the device record reading procedure, as
the short wait sometimes results in "no devices found"
-rw-r--r--libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbmuxd.c b/libusbmuxd.c
index 9cccb40..c12a7c0 100644
--- a/libusbmuxd.c
+++ b/libusbmuxd.c
@@ -88,7 +88,7 @@ int usbmuxd_scan(usbmuxd_scan_result **available_devices)
*available_devices = NULL;
// receive device list
while (1) {
- if (recv_buf_timeout(sfd, &pktlen, 4, MSG_PEEK, 500) == 4) {
+ if (recv_buf_timeout(sfd, &pktlen, 4, MSG_PEEK, 1000) == 4) {
if (pktlen != sizeof(dev_info_pkt)) {
// invalid packet size received!
fprintf(stderr, "%s: Invalid packet size (%d) received when expecting a device info record.\n", __func__, pktlen);