Skip to content
Snippets Groups Projects
Commit 0241016f authored by LJ Sonic's avatar LJ Sonic
Browse files

Do not attempt to disconnect when a packet checksum is invalid

parent e8c83f48
No related branches found
No related tags found
1 merge request!1699Do not attempt to disconnect when a packet checksum is invalid
......@@ -1144,8 +1144,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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment