summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-29 22:37:25 -0700
committerElliott Hughes <enh@google.com>2015-04-29 22:44:47 -0700
commit0156589846117bccb2fbec6b3141cc21bc86c638 (patch)
tree22fa7076e6bb53e4af3403ff9c4c6cd3e123b41b /adb
parentc23f050b74ab444cfb8a78286d633c9e35623895 (diff)
downloadsystem_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.cpp5
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)