try to fix nodes being occupied if connection didnt recieve any acks

partial port from srb2classic
This commit is contained in:
Alug 2025-08-25 15:39:06 +02:00 committed by NepDisk
parent b964df8137
commit f792afd288

View file

@ -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++)