[Server] Handle ID_CONNECTION_ATTEMPT_FAILED in MasterClient

And fix log message
0.6.1
Koncord 8 years ago
parent 1ce8c0f9ec
commit 5517d871c6

@ -112,6 +112,7 @@ bool MasterClient::Process(RakNet::Packet *packet)
rs.Read(pid);
switch (pid)
{
case ID_CONNECTION_ATTEMPT_FAILED:
case ID_CONNECTION_REQUEST_ACCEPTED:
case ID_DISCONNECTION_NOTIFICATION:
break;
@ -158,7 +159,7 @@ void MasterClient::Send(mwmp::PacketMasterAnnounce::Func func)
case IS_SILENTLY_DISCONNECTING:
case IS_DISCONNECTING:
{
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Cannot connect to master server: %d", masterServer.ToString());
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Cannot connect to master server: %s", masterServer.ToString());
return;
}
case IS_PENDING:

Loading…
Cancel
Save