Network/ENetHost: Fix a bug
This commit is contained in:
parent
5207f2c821
commit
34828929b2
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue