try to fix nodes being occupied if connection didnt recieve any acks
partial port from srb2classic
This commit is contained in:
parent
b964df8137
commit
f792afd288
1 changed files with 6 additions and 0 deletions
|
|
@ -698,6 +698,12 @@ void Net_CloseConnection(INT32 node)
|
|||
Net_SendAcks(node);
|
||||
Net_SendAcks(node);
|
||||
}
|
||||
else
|
||||
{
|
||||
// if the connection hasn't acknowledged anything, it's possible for it to permanently occupy the node.
|
||||
// to prevent this, drop the connection.
|
||||
forceclose = true;
|
||||
}
|
||||
|
||||
// check if we are waiting for an ack from this node
|
||||
for (i = 0; i < MAXACKPACKETS; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue