diff options
author | Yabin Cui <yabinc@google.com> | 2016-04-29 16:53:52 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-05-24 16:38:47 -0700 |
commit | b74c6498aa2be70d591c900bda9ab7712c682a63 (patch) | |
tree | 2e4003e9375b1a47c53919c1cd295363d57d4cec /adb/adb.h | |
parent | 3d981c87c929ec4946ce53d2aaa3503c86886eb1 (diff) | |
download | system_core-b74c6498aa2be70d591c900bda9ab7712c682a63.tar.gz system_core-b74c6498aa2be70d591c900bda9ab7712c682a63.tar.bz2 system_core-b74c6498aa2be70d591c900bda9ab7712c682a63.zip |
adb: retry connecting disconnected emulators instead of always looping.
Previously we loop through local ports every second, this patch improves
the strategy by retrying only just disconnected emulators.
Bug: 26468076
Bug: 19974213
Bug: 22920867
Change-Id: I43ccb746922d104202b0f81a3d163d850bbc890e
Diffstat (limited to 'adb/adb.h')
-rw-r--r-- | adb/adb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -188,7 +188,7 @@ void put_apacket(apacket *p); void local_init(int port); -void local_connect(int port); +bool local_connect(int port); int local_connect_arbitrary_ports(int console_port, int adb_port, std::string* error); // USB host/client interface. |