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

partial port from srb2classic
This commit is contained in:
Alug committed 2025-08-25 15:40:50 +02:00
1 parent 717f5e3c13
commit 0e05dca3d5
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++)