From 63e8d9815f4a95b424cea30573a520f58b19960b Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 18 Jul 2019 14:46:53 -0700 Subject: [PATCH] adb: switch from system_clock to steady_clock. Test: treehugger Change-Id: I10b884dc159a5ba624bc0f7ad53a402bffb14293 --- adb/client/usb_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/client/usb_linux.cpp b/adb/client/usb_linux.cpp index 81b830643..17b4db159 100644 --- a/adb/client/usb_linux.cpp +++ b/adb/client/usb_linux.cpp @@ -324,7 +324,7 @@ static int usb_bulk_write(usb_handle* h, const void* data, int len) { h->urb_out_busy = 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) { // TODO: call USBDEVFS_DISCARDURB? errno = ETIMEDOUT;