FIX: avoid repeated login handle
Change-Id: Id18270a130299e6cd091cec4a05549cd4416b736
This commit is contained in:
parent
72e06cbd8b
commit
684ff8047a
|
@ -1667,9 +1667,9 @@ void GUI_App::init_networking_callbacks()
|
||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": enter, m_agent=%1%")%m_agent;
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": enter, m_agent=%1%")%m_agent;
|
||||||
if (m_agent) {
|
if (m_agent) {
|
||||||
//set callbacks
|
//set callbacks
|
||||||
m_agent->set_on_user_login_fn([this](int online_login, bool login) {
|
//m_agent->set_on_user_login_fn([this](int online_login, bool login) {
|
||||||
GUI::wxGetApp().request_user_handle(online_login);
|
// GUI::wxGetApp().request_user_handle(online_login);
|
||||||
});
|
// });
|
||||||
|
|
||||||
m_agent->set_on_server_connected_fn([this]() {
|
m_agent->set_on_server_connected_fn([this]() {
|
||||||
if (m_is_closing) {
|
if (m_is_closing) {
|
||||||
|
|
Loading…
Reference in New Issue