From 3ce9575af76fa6dc110506080434303b9459abf4 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 29 Apr 2015 22:37:25 -0700 Subject: [PATCH] Add missing 'else' to fix all devices showing up as "host". Bug: http://b/20705355 Change-Id: I4f7830278f0c2bc87d95d148d85455b8da894645 --- adb/adb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adb/adb.cpp b/adb/adb.cpp index 4c90dcce7..e52691414 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)