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

This commit is contained in:
Elliott Hughes 2015-04-30 05:42:44 +00:00 committed by Gerrit Code Review
commit 4f021538a6
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)