commit | c4deb3905f349b8c79f409a7e73c1d5b54614cb8 | [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 | ec5e54f6c04956ba306a292fcd2cbcf1c66a0e6d | |
parent | dd655ec95fb929a5d78ac8d9ac5c3e8a459b92d3 [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