Skip to content
Snippets Groups Projects
Commit 443d6b52 authored by Hanicef's avatar Hanicef
Browse files

Fix connections not timing out if clients haven't joined yet

parent 666b9b7d
Branches
No related tags found
No related merge requests found
...@@ -456,7 +456,12 @@ void Net_ConnectionTimeout(INT32 node) ...@@ -456,7 +456,12 @@ void Net_ConnectionTimeout(INT32 node)
nodes[node].flags |= NF_TIMEOUT; nodes[node].flags |= NF_TIMEOUT;
if (server) if (server)
SendKicksForNode(node, KICK_MSG_TIMEOUT | KICK_MSG_KEEP_BODY); {
if (netnodes[node].ingame)
SendKicksForNode(node, KICK_MSG_TIMEOUT | KICK_MSG_KEEP_BODY);
else
Net_CloseConnection(node | FORCECLOSE);
}
else else
CL_HandleTimeout(); CL_HandleTimeout();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment