summaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-04-29 16:53:52 -0700
committerYabin Cui <yabinc@google.com>2016-05-24 16:38:47 -0700
commitb74c6498aa2be70d591c900bda9ab7712c682a63 (patch)
tree2e4003e9375b1a47c53919c1cd295363d57d4cec /adb/adb.h
parent3d981c87c929ec4946ce53d2aaa3503c86886eb1 (diff)
downloadsystem_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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb.h b/adb/adb.h
index cb38e6148..9227eb172 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -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.