core: Do not arm timer-fd for transfers where the os handles timeout
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Jun 2016 14:53:53 +0000 (16:53 +0200)
committerNathan Hjelm <hjelmn@me.com>
Wed, 17 Aug 2016 18:52:40 +0000 (12:52 -0600)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/io.c
libusb/version_nano.h

index 3757f44..13388cc 100644 (file)
@@ -1338,7 +1338,7 @@ static int arm_timerfd_for_next_timeout(struct libusb_context *ctx)
                        goto disarm;
 
                /* act on first transfer that has not already been handled */
-               if (!(transfer->timeout_flags & USBI_TRANSFER_TIMEOUT_HANDLED)) {
+               if (!(transfer->timeout_flags & (USBI_TRANSFER_TIMEOUT_HANDLED | USBI_TRANSFER_OS_HANDLES_TIMEOUT))) {
                        int r;
                        const struct itimerspec it = { {0, 0},
                                { cur_tv->tv_sec, cur_tv->tv_usec * 1000 } };
index de73e86..f39bf48 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11132
+#define LIBUSB_NANO 11133