From 443d6b52332bb91ade0163689c58d6eba7da344f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= <gustaf@hanicef.me> Date: Mon, 3 Feb 2025 16:56:39 +0100 Subject: [PATCH] Fix connections not timing out if clients haven't joined yet --- src/netcode/d_net.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/netcode/d_net.c b/src/netcode/d_net.c index 4860d8688..852123a3e 100644 --- a/src/netcode/d_net.c +++ b/src/netcode/d_net.c @@ -456,7 +456,12 @@ void Net_ConnectionTimeout(INT32 node) nodes[node].flags |= NF_TIMEOUT; 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 CL_HandleTimeout(); -- GitLab