diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-04-27 19:56:02 +0100 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-04-27 19:56:02 +0100 |
commit | a5006fd7b9dae6f1db7969c8744086ba3a7c027b (patch) | |
tree | 90736277ba1e39fa1771d4e025275ed9c1454b0f | |
parent | 3bdafaa359d9c65e1af360b5338e1f25528a8066 (diff) | |
download | libusb-a5006fd7b9dae6f1db7969c8744086ba3a7c027b.tar.gz |
remove extra timeout check
If select() didn't timeout then don't check for more timeouts
-rw-r--r-- | libusb/io.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libusb/io.c b/libusb/io.c index 48ffce7..e41b51e 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -993,11 +993,10 @@ static int handle_events(struct timeval *tv) } r = usbi_backend->handle_events(_readfds, _writefds); - if (r < 0) - return r; + if (r) + usbi_err("backend handle_events failed with error %d", r); - /* FIXME check return value? */ - return handle_timeouts(); + return r; } /** \ingroup poll |