diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2010-11-15 16:37:47 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2010-11-15 16:37:47 +0000 |
commit | 810a91e03880a4355681f8e00defcb1ee45391e2 (patch) | |
tree | d921640316ea829fe1658c91b4c3dfdc2f660178 /libgphoto2_port/usb | |
parent | a1e131782cf0c28aa12e3e97f04b579197fd8333 (diff) | |
download | libgphoto2-810a91e03880a4355681f8e00defcb1ee45391e2.tar.gz |
added another timeout errno
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13405 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/usb')
-rw-r--r-- | libgphoto2_port/usb/libusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgphoto2_port/usb/libusb.c b/libgphoto2_port/usb/libusb.c index eab4330f5..d33f7dced 100644 --- a/libgphoto2_port/usb/libusb.c +++ b/libgphoto2_port/usb/libusb.c @@ -436,7 +436,7 @@ gp_port_usb_check_int (GPPort *port, char *bytes, int size, int timeout) ret = usb_interrupt_read(port->pl->dh, port->settings.usb.intep, bytes, size, timeout); if (ret < 0) { - if (errno == EAGAIN) + if ((errno == EAGAIN) || (errno == ETIMEDOUT)) return GP_ERROR_TIMEOUT; return GP_ERROR_IO_READ; } |