summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-01-08 02:46:15 +0100
committerGravatar Nikias Bassen2018-01-08 02:46:15 +0100
commit17179ab58fac82a0dca48a5c88ef19c6c70ff8a5 (patch)
tree12ffa3863d792d5b9f2e33f421f8ea24a7b4bb6c
parent63cd3057a38c8daf49e839712f1f0bebd0046acb (diff)
downloadusbmuxd-17179ab58fac82a0dca48a5c88ef19c6c70ff8a5.tar.gz
usbmuxd-17179ab58fac82a0dca48a5c88ef19c6c70ff8a5.tar.bz2
usb: Fix calculation of RX loop count
-rw-r--r--src/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usb.c b/src/usb.c
index df05b9d..6225bd5 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -296,6 +296,7 @@ static void get_serial_callback(struct libusb_transfer *transfer)
for (rx_loops = NUM_RX_LOOPS; rx_loops > 0; rx_loops--) {
if(start_rx_loop(usbdev) < 0) {
usbmuxd_log(LL_WARNING, "Failed to start RX loop number %d", NUM_RX_LOOPS - rx_loops);
+ break;
}
}