commit | 1160e33ab707a90cbdeb5276dd708d83240a6ae0 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jul 30 18:51:55 2018 -0700 |
committer | Josh Gao <jmgao@google.com> | Tue Jul 31 15:56:31 2018 -0700 |
tree | a376f5c4463bc5e4bc5da1ceedf47b2064e0811a | |
parent | 3587b7060bedea72163f1eb05a0e8741e3e9527c [diff] |
adb: don't pass time_point::max to condition_variable::wait_until. libstdc++ implements wait_until by calculating the offset between its default clock and the clock that it's given by calling now() on each and subtracting, and then adds that offset to the time_point argument. When time_point::max is used, this overflows, resulting in the reconnection thread spinning. Test: wine adb.exe server nodaemon Change-Id: Ife58f0aad14bc44c0804483d3ff2351c28b3d576