[Server] Fix "wrong packet with id: 14"

This commit is contained in:
Koncord 2017-09-02 14:01:01 +08:00
parent da7253bb57
commit 74c9a26d16
2 changed files with 2 additions and 0 deletions

View file

@ -123,6 +123,7 @@ bool MasterClient::Process(RakNet::Packet *packet)
rs.Read(pid);
switch (pid)
{
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTION_ATTEMPT_FAILED:
case ID_CONNECTION_REQUEST_ACCEPTED:
case ID_DISCONNECTION_NOTIFICATION:

View file

@ -464,6 +464,7 @@ int Networking::mainLoop()
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Client at %s has lost connection", packet->systemAddress.ToString());
disconnectPlayer(packet->guid);
break;
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTED_PING:
case ID_UNCONNECTED_PING:
break;