Print 'hide address' only in WAN mode; remove commented out code.
This commit is contained in:
parent
90b92419f3
commit
e6c2620c90
@ -236,8 +236,8 @@ void ConnectToServer::asynchronousUpdate()
|
|||||||
{
|
{
|
||||||
delete m_current_protocol;
|
delete m_current_protocol;
|
||||||
m_current_protocol = NULL;
|
m_current_protocol = NULL;
|
||||||
}
|
|
||||||
Log::info("ConnectToServer", "Address hidden");
|
Log::info("ConnectToServer", "Address hidden");
|
||||||
|
}
|
||||||
m_state = DONE;
|
m_state = DONE;
|
||||||
// lobby room protocol if we're connected only
|
// lobby room protocol if we're connected only
|
||||||
if(STKHost::get()->getPeers()[0]->isConnected())
|
if(STKHost::get()->getPeers()[0]->isConnected())
|
||||||
@ -458,12 +458,8 @@ bool ConnectToServer::notifyEventAsynchronous(Event* event)
|
|||||||
{
|
{
|
||||||
Log::info("ConnectToServer", "The Connect To Server protocol has "
|
Log::info("ConnectToServer", "The Connect To Server protocol has "
|
||||||
"received an event notifying that he's connected to the peer.");
|
"received an event notifying that he's connected to the peer.");
|
||||||
//STKHost::get()->addPeer(event->getPeer());
|
|
||||||
m_state = CONNECTED; // we received a message, we are connected
|
m_state = CONNECTED; // we received a message, we are connected
|
||||||
Server *server = ServersManager::get()->getJoinedServer();
|
Server *server = ServersManager::get()->getJoinedServer();
|
||||||
// STKHost::get()->connect(server->getAddress());
|
|
||||||
|
|
||||||
event->getPeer();
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} // notifyEventAsynchronous
|
} // notifyEventAsynchronous
|
||||||
|
Loading…
Reference in New Issue
Block a user