summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c
index f08fe72..c94df17 100644
--- a/libusb/io.c
+++ b/libusb/io.c
@@ -2148,7 +2148,7 @@ API_EXPORTED int libusb_get_next_timeout(libusb_context *ctx,
}
TIMESPEC_TO_TIMEVAL(&cur_tv, &cur_ts);
- if (timercmp(&cur_tv, next_timeout, >=)) {
+ if (!timercmp(&cur_tv, next_timeout, <)) {
usbi_dbg("first timeout already expired");
timerclear(tv);
} else {