Some more tries to fix timeout stuff

This commit is contained in:
def 2014-08-16 15:43:49 +02:00
parent 07aa08703d
commit 2bdc6a1f4d
2 changed files with 2 additions and 3 deletions

View file

@ -239,9 +239,8 @@ int CNetConnection::Feed(CNetPacketConstruct *pPacket, NETADDR *pAddr)
} }
else else
{ {
if(State() == NET_CONNSTATE_OFFLINE || State() == NET_CONNSTATE_ERROR) if(State() == NET_CONNSTATE_OFFLINE)
{ {
m_State = NET_CONNSTATE_OFFLINE;
if(CtrlMsg == NET_CTRLMSG_CONNECT) if(CtrlMsg == NET_CTRLMSG_CONNECT)
{ {
// send response and init connection // send response and init connection

View file

@ -139,7 +139,7 @@ int CNetServer::Recv(CNetChunk *pChunk)
// check if we already got this client // check if we already got this client
for(int i = 0; i < MaxClients(); i++) for(int i = 0; i < MaxClients(); i++)
{ {
if(m_aSlots[i].m_Connection.State() != NET_CONNSTATE_OFFLINE && if(m_aSlots[i].m_Connection.State() != NET_CONNSTATE_OFFLINE && m_aSlots[i].m_Connection.State() != NET_CONNSTATE_ERROR &&
net_addr_comp(m_aSlots[i].m_Connection.PeerAddress(), &Addr) == 0) net_addr_comp(m_aSlots[i].m_Connection.PeerAddress(), &Addr) == 0)
{ {
Found = true; // silent ignore.. we got this client already Found = true; // silent ignore.. we got this client already