Commit 999d27ed52d8a17671f5fcef304cea86e82a1b37

Con Kolivas 2013-11-25T23:05:41

libusb error IO should be fatal as well if it gets through usb read and write.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/usbutils.c b/usbutils.c
index 44ba6ba..22fe9af 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -20,6 +20,7 @@
 
 #define NODEV(err) ((err) == LIBUSB_ERROR_NO_DEVICE || \
 			(err) == LIBUSB_ERROR_PIPE || \
+			(err) == LIBUSB_ERROR_IO || \
 			(err) == LIBUSB_ERROR_OTHER)
 
 /* Timeout errors on writes are basically unrecoverable */