mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Some more tries to fix timeout stuff
This commit is contained in:
parent
07aa08703d
commit
2bdc6a1f4d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue