mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-03 00:16:50 +00:00
fix not switching to browsing when autologin
due to duplicated code :^)
This commit is contained in:
parent
061258fb34
commit
fb39318d9d
@ -193,12 +193,8 @@ void ClientNetwork::start_login() {
|
|||||||
{ "role", m_identity->Role },
|
{ "role", m_identity->Role },
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
client_tcp_write(login_result);
|
// move on to quick join right away
|
||||||
bmp::ClientPacket change_to_quickjoin {
|
start_quick_join();
|
||||||
.purpose = bmp::ClientPurpose::StateChangeQuickJoin,
|
|
||||||
};
|
|
||||||
client_tcp_write(change_to_quickjoin);
|
|
||||||
m_client_state = bmp::ClientState::QuickJoin;
|
|
||||||
return; // done
|
return; // done
|
||||||
} else {
|
} else {
|
||||||
spdlog::warn("Failed to automatically login with cached/saved login details: {}", login.error());
|
spdlog::warn("Failed to automatically login with cached/saved login details: {}", login.error());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user