commit | 4f021538a662c89e2bf81b3467d2ff03e34905e2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Apr 30 05:42:44 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Apr 30 05:42:45 2015 +0000 |
tree | 2ee6f3f07bd19f72e61a4ea4a383cc2d713d4dbc | |
parent | 9616e829886c41931c9fa30f08ec69d90944a9e9 [diff] | |
parent | 3ce9575af76fa6dc110506080434303b9459abf4 [diff] |
Merge "Add missing 'else' to fix all devices showing up as "host"."
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 @@ 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)