Do not attempt to disconnect when a packet checksum is invalid

This commit is contained in:
Alug committed 2024-03-01 21:14:23 +01:00
1 parent 53010deb8b
commit afa41fa88e
1 file changed
+3 -2
+3 -2
View File
@@ -1171,8 +1171,9 @@ boolean HGetPacket(void)
if (netbuffer->checksum != NetbufferChecksum())
{
DEBFILE("Bad packet checksum\n");
//Net_CloseConnection(nodejustjoined ? (doomcom->remotenode | FORCECLOSE) : doomcom->remotenode);
Net_CloseConnection(doomcom->remotenode);
// Do not disconnect or anything, just ignore the packet.
// Bad checksums with UDP tend to happen very scarcely
// so they are not normally an issue.
continue;
}