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

This commit is contained in:
Alug committed 2025-08-25 15:39:06 +02:00
1 parent 67551833dd
commit 5e8c0a892d
1 file changed
+6
+6
View File
@@ -713,6 +713,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++)