We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1c3ca commit cf291acCopy full SHA for cf291ac
1 file changed
src/hal/user_comps/xhc-whb04b-6/usb.cc
@@ -746,7 +746,8 @@ void Usb::process()
746
timeout.tv_usec = 200 * 1000;
747
748
int r = libusb_handle_events_timeout_completed(context, &timeout, nullptr);
749
- if(r != 0)
+ //LIBUSB_ERROR_INTERRUPTED can happen on shutdown signal and is fine
750
+ if(r != 0 && r != LIBUSB_ERROR_INTERRUPTED)
751
{
752
std::cerr << endl << "Error: process() libusb_handle_events_timeout_completed returned " << r << endl;
753
}
0 commit comments