Network/ENetHost: Fix a bug

This commit is contained in:
Lynix 2017-01-28 17:16:14 +01:00
parent 5207f2c821
commit 34828929b2
1 changed files with 3 additions and 3 deletions

View File

@ -1068,7 +1068,7 @@ namespace Nz
bool ENetHost::HandleVerifyConnect(ENetEvent* event, ENetPeer* peer, ENetProtocol* command) bool ENetHost::HandleVerifyConnect(ENetEvent* event, ENetPeer* peer, ENetProtocol* command)
{ {
if (peer->GetState() != ENetPeerState::Connecting) if (peer->GetState() != ENetPeerState::Connecting)
return false; return true;
UInt32 channelCount = NetToHost(command->verifyConnect.channelCount); UInt32 channelCount = NetToHost(command->verifyConnect.channelCount);
@ -1082,7 +1082,7 @@ namespace Nz
peer->DispatchState(ENetPeerState::Zombie); peer->DispatchState(ENetPeerState::Zombie);
return true; return false;
} }
peer->RemoveSentReliableCommand(1, 0xFF); peer->RemoveSentReliableCommand(1, 0xFF);