diff options
author | Elliott Hughes <enh@google.com> | 2015-04-29 22:37:25 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-04-29 22:44:47 -0700 |
commit | 0156589846117bccb2fbec6b3141cc21bc86c638 (patch) | |
tree | 22fa7076e6bb53e4af3403ff9c4c6cd3e123b41b /adb | |
parent | c23f050b74ab444cfb8a78286d633c9e35623895 (diff) | |
download | system_core-0156589846117bccb2fbec6b3141cc21bc86c638.zip system_core-0156589846117bccb2fbec6b3141cc21bc86c638.tar.gz system_core-0156589846117bccb2fbec6b3141cc21bc86c638.tar.bz2 |
Add missing 'else' to fix all devices showing up as "host".
Bug: http://b/20705355
Change-Id: I4f7830278f0c2bc87d95d148d85455b8da894645
(cherry picked from commit 3ce9575af76fa6dc110506080434303b9459abf4)
Diffstat (limited to 'adb')
-rw-r--r-- | adb/adb.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/adb.cpp b/adb/adb.cpp index 4c90dcc..e526914 100644 --- a/adb/adb.cpp +++ b/adb/adb.cpp @@ -436,9 +436,10 @@ void parse_banner(const char* banner, atransport* t) { D("setting connection_state to CS_SIDELOAD\n"); t->connection_state = CS_SIDELOAD; update_transports(); + } else { + D("setting connection_state to CS_HOST\n"); + t->connection_state = CS_HOST; } - - t->connection_state = CS_HOST; } void handle_packet(apacket *p, atransport *t) |