Skip to content
Snippets Groups Projects
Commit 0758f392 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Ignore USB "pipe" errors (cancelled transfers on device hot-unplug)

parent c8cdbf18
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ void FCDevice::submitTransfer(Transfer *fct)
int r = libusb_submit_transfer(fct->transfer);
if (r < 0) {
if (mVerbose) {
if (mVerbose && r != LIBUSB_ERROR_PIPE) {
std::clog << "Error submitting USB transfer: " << libusb_strerror(libusb_error(r)) << "\n";
}
delete fct;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment