FIX: avoid repeated login handle

Change-Id: Id18270a130299e6cd091cec4a05549cd4416b736
This commit is contained in:
tao.jin 2023-02-21 13:26:09 +08:00 committed by Lane.Wei
parent 72e06cbd8b
commit 684ff8047a
1 changed files with 3 additions and 3 deletions

View File

@ -1667,9 +1667,9 @@ void GUI_App::init_networking_callbacks()
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": enter, m_agent=%1%")%m_agent;
if (m_agent) {
//set callbacks
m_agent->set_on_user_login_fn([this](int online_login, bool login) {
GUI::wxGetApp().request_user_handle(online_login);
});
//m_agent->set_on_user_login_fn([this](int online_login, bool login) {
// GUI::wxGetApp().request_user_handle(online_login);
// });
m_agent->set_on_server_connected_fn([this]() {
if (m_is_closing) {