Loading adb/client/usb_linux.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -324,7 +324,7 @@ static int usb_bulk_write(usb_handle* h, const void* data, int len) { h->urb_out_busy = true; h->urb_out_busy = true; while (true) { while (true) { auto now = std::chrono::system_clock::now(); auto now = std::chrono::steady_clock::now(); if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { // TODO: call USBDEVFS_DISCARDURB? // TODO: call USBDEVFS_DISCARDURB? errno = ETIMEDOUT; errno = ETIMEDOUT; Loading Loading
adb/client/usb_linux.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -324,7 +324,7 @@ static int usb_bulk_write(usb_handle* h, const void* data, int len) { h->urb_out_busy = true; h->urb_out_busy = true; while (true) { while (true) { auto now = std::chrono::system_clock::now(); auto now = std::chrono::steady_clock::now(); if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { if (h->cv.wait_until(lock, now + 5s) == std::cv_status::timeout || h->dead) { // TODO: call USBDEVFS_DISCARDURB? // TODO: call USBDEVFS_DISCARDURB? errno = ETIMEDOUT; errno = ETIMEDOUT; Loading