Skip to content

Commit

Permalink
Merge pull request #6488 from doronhi/wrong_usb_request_cancel_error
Browse files Browse the repository at this point in the history
remove false libusb error message.
  • Loading branch information
dorodnic authored Jun 1, 2020
2 parents d04376a + 8263fea commit 267c5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libusb/messenger-libusb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace librealsense
{
auto nr = reinterpret_cast<libusb_transfer*>(request->get_native_request());
auto sts = libusb_cancel_transfer(nr);
if (sts < 0)
if (sts < 0 && sts != LIBUSB_ERROR_NOT_FOUND)
{
std::string strerr = strerror(errno);
LOG_WARNING("usb_request_cancel returned error, endpoint: " << (int)request->get_endpoint()->get_address() << " error: " << strerr << ", number: " << (int)errno);
Expand Down

0 comments on commit 267c5a3

Please sign in to comment.