diff options
author | Nikias Bassen | 2009-04-08 13:05:33 +0200 |
---|---|---|
committer | Nikias Bassen | 2009-04-08 13:05:33 +0200 |
commit | 3aa04f1fc526d7f8d33ebafb7ab7c130350b81ed (patch) | |
tree | d1d8297fd4a518f83c7f4191e74172a30304efeb /libusbmuxd.c | |
parent | 05e6e479a0ba45a5b164e4e18fbbbb1c600554b0 (diff) | |
download | usbmuxd-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"
Diffstat (limited to 'libusbmuxd.c')
-rw-r--r-- | libusbmuxd.c | 2 |
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); |