commit | 0b13c89f7a4df0c3105ca2aa4d9406ae4964fd8b | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed May 31 11:54:56 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed May 31 12:13:59 2017 -0700 |
tree | 19510431c5bf13672376063237738da106a86dd3 | |
parent | b46fd68653131d276ccb23ba7790640c6a9c1c7d [diff] |
adb: reunregress waiting for device on start-server. Move the invocation of adb_notify_device_scan_complete to the end of device_connected, where we decrement connecting_devices. Also, create a dedicated thread for handling hotplug events, instead of reusing the main thread for this, since the main thread blocks until device scan is complete. Test: `adb kill-server; adb devices` Change-Id: Ia73b1a57538174282a48ef73ab0a3e58152d6f83