Skip to content

Commit

Permalink
fix not switching to browsing when autologin
Browse files Browse the repository at this point in the history
due to duplicated code :^)
  • Loading branch information
lionkor committed Mar 9, 2024
1 parent 061258f commit fb39318
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ClientNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,8 @@ void ClientNetwork::start_login() {
{ "role", m_identity->Role },
}),
};
client_tcp_write(login_result);
bmp::ClientPacket change_to_quickjoin {
.purpose = bmp::ClientPurpose::StateChangeQuickJoin,
};
client_tcp_write(change_to_quickjoin);
m_client_state = bmp::ClientState::QuickJoin;
// move on to quick join right away
start_quick_join();
return; // done
} else {
spdlog::warn("Failed to automatically login with cached/saved login details: {}", login.error());
Expand Down

0 comments on commit fb39318

Please sign in to comment.