From 8263feaa81fbd41299544b9a1e95a938632257c9 Mon Sep 17 00:00:00 2001 From: doronhi Date: Mon, 1 Jun 2020 14:25:53 +0300 Subject: [PATCH] remove false libusb error message. --- src/libusb/messenger-libusb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libusb/messenger-libusb.cpp b/src/libusb/messenger-libusb.cpp index cb4c2ad0a4..07b3ace172 100644 --- a/src/libusb/messenger-libusb.cpp +++ b/src/libusb/messenger-libusb.cpp @@ -99,7 +99,7 @@ namespace librealsense { auto nr = reinterpret_cast(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);