Add missing 'else' to fix all devices showing up as "host".

Bug: http://b/20705355
Change-Id: I4f7830278f0c2bc87d95d148d85455b8da894645
This commit is contained in:
Elliott Hughes 2015-04-29 22:37:25 -07:00
parent ffa0d24d09
commit 3ce9575af7
1 changed files with 3 additions and 2 deletions

View File

@ -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)