mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
core: Do not arm timer-fd for transfers where the os handles timeout
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
committed by
Nathan Hjelm
parent
138b661f42
commit
06e86793be
+1
-1
@@ -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 } };
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11132
|
||||
#define LIBUSB_NANO 11133
|
||||
|
||||
Reference in New Issue
Block a user