From 3aa04f1fc526d7f8d33ebafb7ab7c130350b81ed Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 8 Apr 2009 13:05:33 +0200 Subject: increased read timeout for the device record reading procedure, as the short wait sometimes results in "no devices found" --- libusbmuxd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-32-gdbae